This discussion is archived
0 Replies Latest reply: Oct 30, 2010 9:23 AM by 809505 RSS

Access camera video stream

809505 Newbie
Currently Being Moderated
Hello,

I want to access the camera's video stream directly (to do some analysis). I did some research, but I have not found a working solution yet. I think it should works like this:
###
rc = (RecordControl) myPlayer.getControl("RecordControl");
               
output = new ByteArrayOutputStream();
rc.setRecordStream(output);
rc.startRecord();
####
Now I have a byte stream with the video data. Usually this gets played this way:
####
ByteArrayInputStream bis = new ByteArrayInputStream(output.toByteArray());
myPlayer = Manager.createPlayer(bis, "video/3gpp");
myPlayer.realize();
####

How can I directly access the data?
Regards,

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points