Alexandre Eiras wrote:Hi Ricardo,
You can post your example with mplayer? I want to use JavaFX, but I have the same problem.
Thank you
Hi there, Alexandre. I hope this is still useful for you.
In this example I created a Swing project in Netbeans and used a form to build the interface. This example is really simple and has 3 main files - Player.java, OpenFile.java and the Cointaner.java (for the form)
Here, we will be able only to open the file, not to read any particular information about the media file.
Then, we need the file chooser/"opener" for this basic player:
At last, the Container. I'm ommiting the Conatiner.form.
And if you wish to catch media information, such as duration, you have use something like this:
One thing we found a little hard to implement was the progress bar. For that, we had to create a Listener. If you have some trouble creating it, I can try to help you. I hope this will help you, and I'm sorry for taking too long to answer your post.
Take care,
Ricardo