-
Notifications
You must be signed in to change notification settings - Fork 269
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
What's about events? #27
Comments
Wouldn't you link to the events on the main YouTube video once embedded? I think we should expose an event when that occurs. Although a MutationObserver could possibly fill the role just fine without us needing to do any extra work. Worth looking into and explaining though. |
I think this is roughly supported via the jsapi which will be possible to use via #20 (comment) It'll require some experimentation though. |
I need this so I am implementing it in a fork now. Some thoughts:
Any thoughts on this? |
So I implemented this. But there is a major obstacle: onYouTubeIframAPIReady Is there someone who can reach the developers for that API and tell them this? |
Why won't a single function work? What is the use-case where an array is required to get the expected functionality? |
My use-case is a web component. |
Eh, sorry, my bad. It works fine with a single function. |
That's not a use-case, that's just what you're trying to use it in. A use case defines what your goal is, how you're approaching the problem, and what about the external API isn't allowing you to move forward.
So there is no need to try and get an array to be supported by the YouTube API? |
No, it was my mistake. (As I guess anyone here realize you just wrap the old function in onYouTubeIframAPIReady in your new function.) |
Something like this for wrapping: `
` |
as of 0.1.0, you can now easily turn on the js api: https://github.com/paulirish/lite-youtube-embed#custom-player-parameters with enablejsapi=1 ... you can then use https://developers.google.com/youtube/iframe_api_reference |
Need some events when video start/stop, to control playing another video blocks
The text was updated successfully, but these errors were encountered: