• Post Reply Bookmark Topic Watch Topic
  • New Topic

video player using vlcj in Java  RSS feed

 
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m using vlcj for making video player but im getting native library error


error
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
run:
java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
  symbol:   class Win64FullScreenStrategy
  location: package uk.co.caprica.vlcj.player.embedded.windows
at vlcj1.Vlcj1.<clinit>(Vlcj1.java:16)
Exception in thread "main" C:\Users\biznis\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 0 seconds)

as i had downloaded 64 bit vlc player im getting this error
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help someone
 
Marshal
Posts: 58831
179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it permissible to use packages starting com.sun?
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
marshall its running now just changing version of vlcj  to 3.0.1 and jna to 3.52 and now i wanted to know  how  To get the time or time left, and set speed in video player.
 
Saloon Keeper
Posts: 4426
108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is generally a bad idea:


} catch (IOException | CannotRealizeException | NoPlayerException e) {
 
}


How will you know what problems there are, or even that there are problems? At the very least print out the error messages to a place where you will see them.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok tim but im not using that code im using the last one code
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  this is running code how to add action performed on button and how to get time when video get paused.
 
Sheriff
Posts: 23506
47
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't make your VLCPlayer class implement ActionListener; instead add a suitable ActionListener to each of your buttons. The commented-out code starting at line 87 contains the code which should be the body of each of those two ActionListeners. (Although you might have to reorder the code in the constructor so that the code in the ActionListeners knows about the mediaPlayer variable.)
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

yes paul istead of action performed i had tried with this also but its giving me compile time error cannot find symbol getMediaPlayer.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and cannot find symbol method play()
 
Rancher
Posts: 3456
39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For that actionPerformed method, you can skip the if/else as you know which button it is, as that's the button you've attached the listener to (ie the pause button in this case).

As for the compilation error, does whatever class mediaPlayer is have that method?
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


like this im getting error illegal start of type in actionPerformed line
 
Dave Tolls
Rancher
Posts: 3456
39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
?
That's not valid syntax in there at all.
Looks like you are mixing up an anonymous class and a lambda.

Using your code from the earlier post, this is what I meant:
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that doesnt change the error error still remain the same
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this the error log
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
now its working i found the error thanks

 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to set this time bar in video player as you can see

 
Tim Moores
Saloon Keeper
Posts: 4426
108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "set this time bar in video player" mean? And no, we can not see what's happening on your desktop.
 
Niti Kapoor
Ranch Hand
Posts: 406
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sry at that time snapshot doesnt attach
 
Tim Moores
Saloon Keeper
Posts: 4426
108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post more than abbreviated sentences; it's hard to understand what problem you are facing. "normally the progress time bar which is increasing when video plays" gives us just about nothing to work with: TellTheDetails

Seeing relevant code excerpts (NOT the entire GUI code) would also help, as we don't know the code you are currently working with.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my entire code
 
Tim Moores
Saloon Keeper
Posts: 4426
108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what is the problem? The image you posted is apparently not what you expected - so, what did you expect instead?
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want add seek bar that increase when the video increase 
 
Tim Moores
Saloon Keeper
Posts: 4426
108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick search for "vlcj embeddedvideoplayer progress bar" finds https://stackoverflow.com/questions/11457780/vlcj-updating-the-progress-bar-as-the-video-progresses, which tackles this by using MediaPlayerEventAdapter and MediaPlayerEventListener. Note the reply about using positionChanged vs. using timeChanged - you may wish to try both.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i had done like this thanks.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm not sure dear your query about java so not solving the your problem
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its k dear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!