
Originally Posted by
antonio5982
Hi people,
I have a strange problem on record and display a fullscreen video.
Actually, i manage to record the video on fullscreen mode, this is the code:
-------------------------------------------------------------------------------------
player = Manager.createPlayer("capture://video");
player.realize();
record = (RecordControl)player.getControl("RecordControl");
record.setRecordSizeLimit(300000);
conn = (FileConnection)Connector.open(videoPath,Connector.READ_WRITE);
if(!conn.exists()) conn.create();
stream = conn.openOutputStream();
record.setRecordStream(stream);
control = (VideoControl)player.getControl("VideoControl");
if (control != null)
{
control.initDisplayMode(VideoControl.USE_DIRECT_VIDEO,this);
control.setDisplayLocation(0,0);
control.setDisplaySize(getWidth(), getHeight());
//control.setDisplayFullScreen(true);
control.setVisible(true);
}
player.start();
record.startRecord();
-------------------------------------------------------------------------------------
My problem is to display the video which I have recorded in fullscreen mode, this is the code:
--------------------------------------------------------------------------------------
player = Manager.createPlayer(videoPath);
player.realize();
control = (VideoControl)player.getControl("VideoControl");
if (control != null)
{
control.initDisplayMode(VideoControl.USE_DIRECT_VIDEO,this);
control.setDisplayLocation(0,0);
control.setDisplaySize(getWidth(), getHeight());
//control.setDisplayFullScreen(true);
control.setVisible(true);
}
player.prefetch();
player.start();
----------------------------------------------------------------------------------------
I have also tryied to use the "control.setDisplayFullScreen(true);" method, but it is not working...
could you please explaining me the reason of that? is it possible to have a fullscreeen video????
I am using nokia e66 and n96 for this application.
Thanks in advance,
Antonio