Is recording of video possible in 6600? Capturing/recording of audio works fine, but I can't get the recording of video working.
This will capture audio well:
--
player = Manager.createPlayer("capture://audio?encoding=gsm");
output = new ByteArrayOutputStream();
player.realize();
recordControl = (RecordControl)player.getControl("RecordControl");
recordControl.setRecordStream(output);
recordControl.startRecord();
player.start();
...
recordControl.commit();
player.close();
byte [] audio = output.toByteArray();
--
Showing the live video on display works. But when trying to record video, the RecordControl.setRecordStream() method will throw a NullPointerException.
--
player = Manager.createPlayer("capture://video");
output = new ByteArrayOutputStream();
player.realize();
videoControl = (VideoControl)(player.getControl("VideoControl"));
recordControl = (RecordControl)(player.getControl("RecordControl"));
recordControl.setRecordStream(output);//this line will throw an Exception. Worked with audio capture, but not in here.
...
recordControl.startRecord();
player.start();
--
Also System.getProperty("video.encodings") doesn't return anything.

Reply With Quote

