我的双链接内容有问题。首先我播放名为“ABC”的链接,20秒后,我想切换到播放名为“DEF”的链接,并在20秒开始,而不是重置为0。使用react-native-video插件。
你能帮我解决这个问题吗?
<Video source={{uri: this.state.link}}
ref={videoPlayer => this.videoPlayer = videoPlayer}
rate={this.state.rate} // 0 is paused, 1 is normal.
volume={Math.max(Math.min(1, volume), 0)} // 0 is muted, 1 is normal.
muted={false} // Mutes the audio entirely.
paused={this.state.paused} // Pauses playback entirely.
resizeMode={resizeMode} // Fill the whole screen at aspect ratio.
repeat={true} // Repeat forever.
progressUpdateInterval={250.0} // [iOS] Interval to fire onProgress (default to ~250ms)
onLoadStart={this.loadStart} // Callback when video starts to load
onLoad={this.onVideoLoad}
onProgress={this.onProgress} // Callback every ~250ms with currentTime
onEnd={this.onVideoEnd} // Callback when playback finishes
onError={this.videoError} // Callback when video cannot be loaded
onTimedMetadata={this.onTimedMetadata}
onBuffer={this.onBuffer}
style={[backgroundVideo, backgroundHeightVideo]} />