Created
September 23, 2021 09:06
-
-
Save jambestwick/0d271171f9ec00e422b1c94671849405 to your computer and use it in GitHub Desktop.
android camera method onPreviewFrame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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