我在S3上有mpd和m3u8文件,并通过CloudFront分发。当我使用bitmovin.com测试流媒体时,flowplayer.com它可以工作。React-native-video组件显示{error:{extra:-214748348, what:1}} onError回调。
发布于 2020-02-02 08:01:31
我将版本降级到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 }}
/>https://stackoverflow.com/questions/58787842
复制相似问题