Ciao,
Stavo provando a realizzare un piccolo lettore mp3 con JMF, ma mi da il seguente errore:
Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 24000.0 frame rate, FrameSize=32768 bits
Failed to realize: com.sun.media.PlaybackEngine@7b8c1496
Error: Unable to realize com.sun.media.PlaybackEngine@7b8c1496
Sapreste aiutarmi? grazie!
codice:
import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.media.*;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Gianluca
*/
public class MPlayer {
public static void main(String[] args){
File f = new File("Trains.mp3");
try {
MediaLocator locator = new MediaLocator ( f.toURL() );
Player player = Manager.createPlayer ( locator );
player.start();
} catch (Exception ex) {
Logger.getLogger(MPlayer.class.getName()).log(Level.SEVERE, null, ex);
}
}
}