setOneShotPreviewCallback not hitting onPreviewFrame() in callback

后端 未结 1 424
谎友^
谎友^ 2021-01-07 14:03

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

相关标签:
1条回答
  • 2021-01-07 14:38

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

    mCamera.reconnect();
    

    before calling:

    mCamera.setOneShotPreviewCallback(mPreviewCallback);
    

    (but after everything else).

    0 讨论(0)
提交回复
热议问题