简体   繁体   English

React Native如何播放H264(基本)流

[英]React native how to play h264 (elementary) stream

I need to play the h264 streams received from the camera in react-native app. 我需要在react-native应用程序中播放从相机接收到的h264流。 Is it possible to play raw h264 data without converting to other codec? 是否可以播放原始的h264数据而无需转换为其他编解码器?

Most browsers are fine with the h264 codec, but they will not play the raw bitstream. 大多数浏览器都可以使用h264编解码器,但是它们不会播放原始比特流。 The stream must be wrapped into an mp4 container before the browser will load it. 流必须包装到mp4容器中,然后浏览器才能加载它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM