Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Music Player development

 
kriti agarwal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys i was trying to develop a music player but in order to play an mp3 song my code is not supporting mp3 format.
it is displaying InvalidMidiDataException.
so please help me out!!!
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

MP3 is not MIDI. You'll need the JMF (Java Media Framework) library and the JMF MP3 extension; both can be found on java.sun.com.
 
Rob Spoor
Sheriff
Pie
Posts: 20532
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alternatively, both JLayer and BasicPlayer (google for them) can play MP3 files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic