this is the only trace of exception i can get (if i understand you correctly)
i have no idea how to load File so i try like this
public class Play
{
public static void Play(String args) throws MalformedURLException
{
File file = new File("mpgs/Real.mpg");
java.net.URL mediaURL = file.toURI().toURL();
if ( mediaURL != null )
{
JFrame mediaTest = new JFrame("Turing Media Center");
mediaTest.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
MediaPanel mediaPanel = new MediaPanel(mediaURL);
mediaTest.add(mediaPanel);
mediaTest.setSize(300, 300);
mediaTest.setVisible(true);
}
}
}
and error occurred
java.io.IOException: File Not Found
java.io.IOException: File Not Found
No media player foundjavax.media.NoPlayerException: Error instantiating class: com.sun.media.protocol.file.DataSource : java.io.IOException: File Not Found
this is first time when i work with url and file and i am absolute lost. this code is part of my program and i just copy paste it so if you can be more specific what exact you need from me and what i should do.

New Topic/Question
Reply




MultiQuote



|