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 was try onPlay, onPlaying all event is not working but I found work around here my code try this
const[player,setPlayer]=useState<any>(undefined)constisMount=useRef(false)useEffect(()=>{if(player&&!isMount.current){try{player.on('play',()=>{onPlay&&onPlay()})player.on('pause',()=>{// pause and finishonPauseOrEnd&&onPauseOrEnd()})onPlayerReady&&onPlayerReady()isMount.current=true}catch(e){console.log('fail to load player event e:',e)}}},[player])return(<VimeoonReady={setPlayer}video={videoId}
...
/>
)
Hello, How can I use events? I am trying to do this
<Vimeo video="3718294" autoplay onProgress={console.log("hey")}/>
but the even is not getting triggered
The text was updated successfully, but these errors were encountered: