下载整个视频文件后,带有远程 url 播放的 react-native-video

问题描述

远程 url 文件越大,播放前的加载时间越长。

像 html5 视频标签一样,我希望它立即与下载的部分一起播放。(流媒体)

任何可能的解决方案?

<Video
    ignoreSilentSwitch={'ignore'}
    style={[{ height: 211 },props.style ? props.style : styles.video]}
    source={{ uri }}
    onEnd={onEnd}
    onLoad={onLoad}
    onLoadStart={onLoadStart}
    onProgress={onProgress}
    onSeek={onSeekVideo}
    paused={paused}
    ref={(ref) =>  videoPlayer.current = ref}
    resizeMode={'contain'}
  />
  <MediaControls
    duration={duration}
    isLoading={isLoading}
    mainColor="rgba(255,255,0.5)"
    onFullScreen={noop}
    onPaused={onPaused}
    onReplay={onReplay}
    onSeek={onSeek}
    onSeeking={onSeeking}
    playerState={playerState}
    progress={currentTime}
    showOnStart={false}
    fadeOutDelay={10000}
    isFullScreen={isFullScreen}
    onDoubleTab={onDoubleTab}
  >

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)