Hi everyone :)
i am trying to display a video located on a remote server, and im using the folliwing code to do it:
try
{
player = Manager.createP layer(locator);
player.addPlaye rListener(this) ;
player.realize( );
player.prefetch ();
videoControl = (VideoControl)p layer.getContro l("VideoControl ");
if(videoControl != null)
{
video = (Item)videoCont rol.initDisplay Mode(VideoContr ol.USE_GUI_PRIM ITIVE, null);
videoControl.se tVisible(true);
}
player.start();
}
catch(Throwable t)
{
reset();
}
im sure that this code works because it actually streams the video when it is run on it its own. but when im using this cod from within my application, i can only hear the video, but not see it!!
can anyone help me out? thanks in advance :)
mani
i am trying to display a video located on a remote server, and im using the folliwing code to do it:
try
{
player = Manager.createP layer(locator);
player.addPlaye rListener(this) ;
player.realize( );
player.prefetch ();
videoControl = (VideoControl)p layer.getContro l("VideoControl ");
if(videoControl != null)
{
video = (Item)videoCont rol.initDisplay Mode(VideoContr ol.USE_GUI_PRIM ITIVE, null);
videoControl.se tVisible(true);
}
player.start();
}
catch(Throwable t)
{
reset();
}
im sure that this code works because it actually streams the video when it is run on it its own. but when im using this cod from within my application, i can only hear the video, but not see it!!
can anyone help me out? thanks in advance :)
mani
Comment