Android Question How could I delay Camera preview ?

Delahaye

Member
Licensed User
Longtime User
Hello,

how could I delay the camera preview so that it shows what's happened x seconds before ?

thank you
 
Can I read directly in the same buffer as the Camera ? From what I've read, the camera store the images in YV12 format in a buffer before starting to show the preview.

Can I read/store X seconds of those YV12 images (from the buffer) in a second buffer and then view them in a second view ?
 
Upvote 0
On what I've read, by using setPreviewCallbackWithBuffer and addCallbackBuffer, I could add little blocks of buffers filled of YUV data by the CameraPreview.
If the added buffer is sized to be filled with X seconds of Preview, I could start reading Buffer1 while Camera is filling Buffer2.


Am I doing "fausse route" ?
I did not find any way of "Playing as video" a Yuv Buffer...
 
Upvote 0
When I look at my Camera Preview images there is a small lag time in what is REALLY happening and what I see. This lag time on my PC when testing Camera Preview on AVD is about 0.5 sec.

Could I simulate a "far away" client view to run the preview images... the further away the longer the difference between Reality and Preview ?

This would increase the broadcast preview delay ?
 
Upvote 0
I tough of this idea when reading this article : http://www.microsoft.com/windows/windowsmedia/howto/articles/broadcastdelay.aspx
RedDelay_threebuffers.jpg


Adding Server Buffer (Time) and then broadcast on a Client... but all virtual and all local to the Android Phone or Tab
 
Upvote 0
Back
Top