react-native - 下载整个视频文件后,带有远程 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, 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}
>
解决方案
推荐阅读
- ruby-on-rails - webpack:TypeError:validateOptions 不是函数
- r - 线图形状
- android - 从另一个线程访问 UI 线程的视图
- r - 使用 sjPlot 更改 plot_model 中的变量标签以获得随机效应
- android - 无法解决:com.xwray:groupie:2.9.0
- amazon-ec2 - 通过远程桌面连接的内置(集成)网络摄像头
- spring - 在springboot中解决构建路径错误之前无法构建项目
- c++ - Qcombobox在C++ Qt中删除和添加项目
- c++ - 在 fstream 的帮助下从文件中读取数据后代码出错
- haskell - 类型签名只允许在具有 ScopedTypeVariables 的模式中使用 - 使用没有花括号的 where