01-28-2010 11:25 PM
I am using JDE Component Package 5.0.0 (beta) and a Bold 9700 device and the 9700 simulator.
I am trying to record video and save it into a file.
Below is a snippet from my code.
_player = Manager.createPlayer("capture://video?encoding=vid
_video = (VideoControl) _player.getControl("VideoControl");
_fileConnection = (FileConnection) Connector.open(_filepath, Connector.READ_WRITE);
_outputStream = _fileConnection.openOutputStream();
_recorder = (RecordControl) _player.getControl("RecordControl");
_state = STATE_RECORDING;
Dialog.alert("Could not get RecordControl!");
A file is generated after the following steps:
The device (Bold 9700) can play the generated file (named video.3gp in my case). But the file is not recognized by Real Player on PC. A 3gp file parser program does not parse the file either.
A file produced usign the built-in video camera application is recognized and played by Real Player on PC.
I looked into the data of the two video files using a hex editor and found the data in the file header part are different.
Instead of _recorder.setRecordStream, I also tried the approach of using setRecordLocation(_filepath) following the sample code. setRecordLocation() function does not generate a file.
So I just compiled the videorecorddemo project from the JDE 5.0.0(beta) and ran the program on Bold 9700. It could not play the generated file is empty when I selected the 'record to stream' option. The program hang when I did not select the 'record to stream' option.
Your kind advice would be appreciated.
02-18-2010 02:48 PM
I am having the same issue.
I am using the application in this sample code:
07-12-2010 06:28 PM
I have the same problem with JDE 220.127.116.11.
I tried to test the sample code in a Blackberry Bold 9000 (With the OS v18.104.22.168 installed) and it did not work. I would like to know if someone has a workaround or something that we have missing.
09-29-2010 09:22 AM
Recordstream is not problem, but video does not have audio information.
RecordLocation doesn't work for me, and the video files always shows 0 byte.
11-30-2010 10:08 AM
Even I am also facing the same issue .. the videoRecordingDemo in blackberry samples doesnt work at all.
Even if it saves, its always 0 KB..
Did any of people get any solution?
04-26-2012 01:29 PM - edited 04-26-2012 01:29 PM
Please try to import Eclipse/BlackBerry Samples/VideoRecordingDemo for OS 6.0 / 7.0.
The setRecordLocation works well.