android/camera-samples

Camera2video sample Recording audio alongside video

rohaitas opened this issue · 2 comments

I am working on a camera app using camera2video. I was able to implement pause and resume functionality on this. But there is no code For audio recording. Which is quite troublesome for me. Could you provide the code for the audio recording?

https://github.com/android/camera-samples/blob/main/Camera2Video/app/src/main/java/com/example/android/camera2/video/EncoderWrapper.kt

This has now been addressed. A simplified MediaRecorder path has been added with the mic enabled.