import javax.media.*;
import java.io.*;
public class MP3Player {
public static void main(String[] args) throws Exception {
File file = new File("xyz.mp3");
MediaLocator mrl = new MediaLocator(file.toURL());
Player player = Manager.createPlayer(mrl);
player.start();
}
}
}``
when i execute above program, it shows error :
Failed to configure: com.sun.media.PlaybackEngine@ce124a7
Bad header in the media: Couldn't detect stream type
Error: Unable to realize com.sun.media.PlaybackEngine@ce124a7 )
.
Any explaination for the above error ??