This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Music Player development  RSS feed

 
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: 42972
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
Posts: 21088
85
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
Boost this thread!