Hi ,

I have tried to capture video using these codes.

try {
// Create a Player that captures live audio.
Player p = Manager.createPlayer("capture://video?encoding=video/3gpp");
p.realize();
// Get the RecordControl, set the record stream,
// start the Player and record for 5 seconds.
RecordControl rc = (RecordControl)p.getControl("RecordControl");
ByteArrayOutputStream output = new ByteArrayOutputStream();
rc.setRecordStream(output);
rc.startRecord();
p.start();
Thread.currentThread().sleep(5000);
rc.commit();
p.close();
} catch (IOException ioe) {
} catch (MediaException me) {
} catch (InterruptedException ie) { }

The above codes is worked well in my handset.

But I need read video(3gp video, Not image) datainto one array again and again, and do some work to the video data in my project(such as visual chat).
By the way, the capture work is not stoped when I read video data from ByteArrayOutputStream (output).

So,the questions are:
1. How I read video data from ByteArrayOutputStream (output)?
2. How to maintenance the capture untill the user ends the capture thread?

Thanks.