React-native-video: How to change video currentTime (or setting a startTime)?

Created on 6 Dec 2016  路  1Comment  路  Source: react-native-video/react-native-video

How can i set/modify the currentTime of the video?

For example if I have a button that jumps to +15 seconds, how can I implement that?

Is there a function like 'setProgress' ?

Most helpful comment

Basically use 'seek' property (number: time in seconds)

source={getVideoSource(props.sourceKey)}
seek={props.seek}
style={styles.fullScreen}
rate={props.rate}
paused={props.paused}
volume={props.volume}
muted={props.muted}
resizeMode={props.resizeMode}
onLoad={props.onLoad}
onProgress={props.onProgress}
onEnd={() => { }}
onSeek={(event) => {console.log('onSeek')}}
repeat={true}
/>

>All comments

Basically use 'seek' property (number: time in seconds)

source={getVideoSource(props.sourceKey)}
seek={props.seek}
style={styles.fullScreen}
rate={props.rate}
paused={props.paused}
volume={props.volume}
muted={props.muted}
resizeMode={props.resizeMode}
onLoad={props.onLoad}
onProgress={props.onProgress}
onEnd={() => { }}
onSeek={(event) => {console.log('onSeek')}}
repeat={true}
/>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Chubacca picture Chubacca  路  3Comments

kay-is picture kay-is  路  3Comments

nachumFreedman picture nachumFreedman  路  3Comments

pppluto picture pppluto  路  3Comments

Monte47 picture Monte47  路  3Comments