Anyone Have MediaRecorder Working with ParcelFileDescriptor and createPipe()?

送分小仙女□ 提交于 2019-11-27 14:37:08
luciofm

I would guess this is related to my answer to your other question. Anyone Have MediaPlayer Working with ParcelFileDescriptor and createPipe()?

Probably when the MediaRecorder will seek to write the Header information, the pipe is closed.

If you use:

recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

The record works fine, because it will not have a header information, only raw audio.

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