Hi,
I am developing a VideoDemo appliaction for Sony S710 Device.I am able to play the video in Emulator.In the Device it shows Error Message "java.io.IOException: failed to connect".
I am connecting to the URL Using GPRS Connection.
if any one knows plz help me...
Sample Code :-
try
{
String url =
" http://java.sun.com/products/java-media/mma/media/test-mpeg.mpg";
Player p = Manager.createPlayer(url);
p.realize();
VideoControl vc;
if ((vc = (VideoControl)p.getControl("VideoControl")) != null)
{
vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, canvas);
vc.setVisible(true);
}
p.start();
} catch (Exception e)
{
System.out.println("Exception in Playing Video : " + e);
}
Regards
Subbu

Reply With Quote


