Android Mediamuxer moov atom

断了今生、忘了曾经 提交于 2019-12-12 04:27:29

问题


I am recording device screen using Mediacodec and Mediamuxer api everything is fine.

Now I want to stream this file while recording, but cant until muxer is stopped and moov atom is written at the end of file.

So my question is it even possible using Mediamuxer for the purpose? If not what are the alternatives?


回答1:


No, it's not possible.

In order to send an MP4 file while it is being written, you need to write fragmented MP4, and MediaMuxer only writes non-fragmented MP4.



来源:https://stackoverflow.com/questions/39483297/android-mediamuxer-moov-atom

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