Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

media player applet

 
parni raghuvanshi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone help me how i can run a media player applet and add items to the playlist as i am not able to add mp3 items to my playlist.I am currently using eclipse ide and making media player applet in it.
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see how anyone can help you. We have no view of your code. We don't even know if you have enabled mp3 and if you have which third party library you are using. You do realise that your Applet will need to be signed.

P.S. Security restrictions and deployment complexities mean that Applets are not a good starting point when learning any aspect of Java. You normally do better to just create a desktop program.
 
parni raghuvanshi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use the code tags when posting code. You just select the code in the edit window and press the 'Code' button. It would be worth editing your last post to add the code tags.

As is stands, does your code play '.au' and '.wav' files ?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... or, to state it directly, AudioClip can't play MP3s. You'll need to use some other library/API to do that. JMF is one such library for which a separate MP3 plugin is available.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic