【问题标题】:Distortion in react-native-videoreact-native-video 中的失真
【发布时间】:2021-04-09 14:48:46
【问题描述】:

我在 react-native-video 中遇到视频失真(不是每次),我在下面附上快照

为视频组件附加代码sn-p

                <Video
                  controls={false}
                  onLoad={onLoad}
                  onBuffer={onBuffer}
                  onLoadStart={onLoadStart}
                  onProgress={onProgress}
                  onEnd={onEnd}
                  paused={!play}
                  ref={videoPlayer}
                  resizeMode={screenType}
                  source={{
                    uri: getSourceHls(),
                  }}
                  style={{
                    position: 'absolute',
                    top: 0,
                    left: 0,
                    bottom: 0,
                    right: 0,
                    width: '100%',
                    height: '100%',
                    backgroundColor: Colors.background,
                  }}
                  volume={10}
                />

谁能指导我我错过了什么/做错了什么?

【问题讨论】:

    标签: react-native react-native-video


    【解决方案1】:

    我也遇到了 react-native-video (4.4.5) 的类似问题,我也一直在尝试找到一些解决方案。就我而言,并非总是在所有视频中都发生这种情况,而是在某些移动设备上发生。在将版本从 4.4.5 升级到 5.1.1 后,我看到了改进,我目前正在监控。我会要求您尝试将 react-native-video 升级到最新(5.1.1),这应该会给您带来一些好处。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-14
      • 2019-05-29
      • 1970-01-01
      • 1970-01-01
      • 2017-01-09
      • 2019-06-17
      • 2022-12-02
      相关资源
      最近更新 更多