Skip to content Skip to sidebar Skip to footer

Setoneshotpreviewcallback Not Hitting Onpreviewframe() In Callback

I'm creating a video capture activity for an app I'm making, and I want to capture a preview frame as well to use as a playback button. I've set the SurfaceView up in onCreate(...

Solution 1:

mCamera.unlock() detaches the camera from the process. It's necessary to call:

mCamera.reconnect();

before calling:

mCamera.setOneShotPreviewCallback(mPreviewCallback);

(but after everything else).

Post a Comment for "Setoneshotpreviewcallback Not Hitting Onpreviewframe() In Callback"