tashe
September 25th, 2009, 06:38 PM
Hi
I am trying to make my own mp3 player with the Java Media Framework. So far I've managed to make a Swing program that has a playlist and play and stop buttons.
Next thing that I want to do is implement a Pause button. I've searched the API and it doesn't tell how can this be done. For the start and stop there are already made methods from the API that I invoke. But nothing similar for Pause.
If anyone has an idea how to solve this I'd be very thankful because its annoying to get stuck on such a trivial problem.
I am using the Player class. This is how I obtain the player.
Player p = Manager.createRealizedPlayer(new File("test.mp3").toURI().toURL());
p.start();
Thanks
I am trying to make my own mp3 player with the Java Media Framework. So far I've managed to make a Swing program that has a playlist and play and stop buttons.
Next thing that I want to do is implement a Pause button. I've searched the API and it doesn't tell how can this be done. For the start and stop there are already made methods from the API that I invoke. But nothing similar for Pause.
If anyone has an idea how to solve this I'd be very thankful because its annoying to get stuck on such a trivial problem.
I am using the Player class. This is how I obtain the player.
Player p = Manager.createRealizedPlayer(new File("test.mp3").toURI().toURL());
p.start();
Thanks