Android Video Circular Buffer with Sound

雨燕双飞 提交于 2019-12-03 05:18:12

问题


I am using Google's Open Source Example: Grafika. I am using it's ContinuousCaptureActivity.java The CircularBuffer's Implementation is demonstrated in this Activity, but there is no audio included in the resultant Video file.

I want to add the Audio Recording functionality within this Activity and add the recorded Audio into the Video in the same CircularBuffered Fashion.

For achieving this i have explored the MediaCodec Library, which was introduced in 4.3+ versions. I have also used MediaMuxer to capture Video and Audio Streams and Muxed them into a single Video.

But, I am not sure about how to implement the Audio Recording functionality into the ContinuousCaptureActivity.java class. Any Help is highly appreciated.

来源:https://stackoverflow.com/questions/27394665/android-video-circular-buffer-with-sound

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!