You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm using react-player with custom controls and light mode. I display my controls before light mode is turned off. I would like to make video paused (turn light mode off and show current thumbnail) when user seeks to somewhere. I tried to change played and then call this.player.handleClickPreview() but it seems something set played to 0. What is more I need the duration of the video before light mode is turned off. How can I achieve that?
The text was updated successfully, but these errors were encountered:
For the duration, use the onDuration callback prop.
To seek to a certain time after turning light mode off, you basically want to start the video at a certain time. Support for this will depend on the type of URL you are playing, but there have been a few issues on this that may be useful:
Hello,
I'm using react-player with custom controls and light mode. I display my controls before light mode is turned off. I would like to make video paused (turn light mode off and show current thumbnail) when user seeks to somewhere. I tried to change
played
and then callthis.player.handleClickPreview()
but it seems something setplayed
to 0. What is more I need the duration of the video before light mode is turned off. How can I achieve that?The text was updated successfully, but these errors were encountered: