Replace MediaRecorder with MediaCodec
The official documentation says we can use any surface to capture imag (e.g. MediaCodec, MediaRecorder, SurfaceTexture). Anyway, I'm having trouble getting MediaCodec work. Here is my sample code https://github.com/alexbat98/Sample-Camera Any ideas on how to implement it?
Your sample code link doesn't work. https://github.com/alexbat98/Sample-Camera
This sample has been migrated to a new location where we can accept Pull Requests (check README for more information).
As recommended by GitHub, we are closing all issues and pull requests now that this older repo will be archived.
If you still see this issue in the updated repo, please reopen the issue/PR there. Thank you!