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
I want to restart the video and can't find a way to make it work.
I'm trying to make an on hover video player, so as soon as you hover over the video it starts playing and when you leave the mouse the thumbnail will appear again and it starts from new as soon as you hover again.
What I've tried
Set the start prop to 0 as soon as the video is paused. But it seems to have no effect. Is this prop refreshing?
I've also tried to use the onPause prop to set the setStart state to 0.
The text was updated successfully, but these errors were encountered:
The start prop is a bit unusual, changing it doesn't really do anything. It's only used when the video ID changes as well. For granular/direct control like this, you need to use the methods on the underlying @vimeo/player instance, which you can access in onReady.
Problem
I want to restart the video and can't find a way to make it work.
I'm trying to make an on hover video player, so as soon as you hover over the video it starts playing and when you leave the mouse the thumbnail will appear again and it starts from new as soon as you hover again.
What I've tried
Set the
start
prop to0
as soon as the video is paused. But it seems to have no effect. Is this prop refreshing?I've also tried to use the
onPause
prop to set thesetStart
state to0
.The text was updated successfully, but these errors were encountered: