Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jambestwick/0d271171f9ec00e422b1c94671849405 to your computer and use it in GitHub Desktop.
Save jambestwick/0d271171f9ec00e422b1c94671849405 to your computer and use it in GitHub Desktop.
android camera method onPreviewFrame
When Android uses mediaRecorder to record, onPreviewFrame does not display,because
api1 does not support calling onPreviewFrame while recording. The preview function during recording is controlled by mMediaRecorder.setPreviewDisplay(mPreview.getHolder().getSurface());
In other words, the preview is done by MediaRecorder during recording.
To achieve a callback while recording, you can only use camera api2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment