React native 从cloudfront响应本机视频点播dash或hls流媒体
我在S3上有mpd和m3u8文件,并通过CloudFront分发。当我使用bitmovin.com测试流媒体时,flowplayer.com可以正常工作。React本机视频组件显示React native 从cloudfront响应本机视频点播dash或hls流媒体,react-native,react-native-video,React Native,React Native Video,我在S3上有mpd和m3u8文件,并通过CloudFront分发。当我使用bitmovin.com测试流媒体时,flowplayer.com可以正常工作。React本机视频组件显示{error:{extra:-214748348,what:1}}onError回调。我降级到4.4.4版。这对我有用。 代码示例: <Video onError={this.onError} onBuffer={this.onBuffer}
{error:{extra:-214748348,what:1}}
onError
回调。我降级到4.4.4版。这对我有用。
代码示例:
<Video
onError={this.onError}
onBuffer={this.onBuffer}
onProgress={this.onProgress}
type="mp4"
source={{uri: "http://d23dyxeqlo5psv.cloudfront.net/big_buck_bunny.mp4"}}
ref={(ref) => {
this.player = ref
}}
style={{ alignSelf: 'stretch', height: 300 }}
/>
{
this.player=ref
}}
样式={{alignSelf:'stretch',高度:300}
/>