-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
YouTube occasionally fires onDuration with 0 #31
Comments
https://developers.google.com/youtube/js_api_reference?hl=en#Retrieving_video_information
Looks like we'll have to call |
Because YouTube doesn't load metadata until video is played Fixes cookpete/react-player#31
Because YouTube doesn't load metadata until video is played Fixes cookpete/react-player#31
Because YouTube doesn't load metadata until video is played Fixes cookpete/react-player#31
Because YouTube doesn't load metadata until video is played Fixes cookpete/react-player#31
Because YouTube doesn't load metadata until video is played Fixes cookpete/react-player#31
Because YouTube doesn't load metadata until video is played Fixes cookpete/react-player#31
I think
onDuration
is called too early for YouTube, as I'm occasionally seeing0
returned. I might have been trying to be too clever by firing it inonReady
and assuming that duration was available then.The text was updated successfully, but these errors were encountered: