-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to play repeating after a video ended playing #92
Labels
Comments
const onPlayerStateChange = useCallback(
(onPlayerStateChange) => {
if (onPlayerStateChange === 'Ended') {
playerRef.current?.play();
}
},
[]
); But I would find a loop prop more convenient too |
Hi all, thanks for the feedback. We don’t have a |
Hey @maxstoller, what should be the ideal way to play videos in loop? |
Hi @dmahajan980, the code snippet @hirbod provided above should work. |
Hi @dreamrsio we now have support for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can we enable a video to play again from start after end playing
The text was updated successfully, but these errors were encountered: