dear all,
i have prob recording video using N70. my code is as described belowpart of it)
public RecordMovie(Main parent) {
//System.gc();
this.setFullScreenMode(true);
this.parent = parent;
this.state = 0;
this.errcode = 0;
try {
player = Manager.createPlayer("capture://audio_video");
player.realize();
recordControl = (RecordControl)player.getControl("RecordControl");
String outputFile = System.getProperty("fileconn.dir.videos") + "MoRe.3gp";
this.fileRecorded = outputFile;
this.errcode = 200;
FileConnection fc = (FileConnection)Connector.open(outputFile);
this.errcode = 0;
try {
fc.delete();
}
catch (IOException ex) {
}
fc.create();
fc.close();
recordControl.setRecordLocation(outputFile);
videoControl = (VideoControl)(player.getControl("VideoControl"));
videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
videoControl.setDisplayFullScreen(true);
videoControl.setVisible(true);
player.start();
} catch (IOException ex){
if(this.errcode == 0)
this.errcode = 200;
ex.printStackTrace();
} catch (MediaException ex) {
if(this.errcode == 0)
this.errcode = 200;
ex.printStackTrace();
}
//this.captureVideo();
}//constructor
the start record and stop record i put them in the keypressed function..
the prob is that when i want to record, it only apperead white screen. not the recording screen.
what should i do ?
thanks for the help!


part of it)
Reply With Quote

