Is it possible to do a javascript action after play button is pushed? I know I will need to use onStateChange function form Youtube's API. But I really don't know where to start? Any help? Thank you.
--
I have also found something here: http://apiblog.youtube.com/2011/01/introducing-javascript-player-api-for.html
To have a video start playing from a specific point, add “? start=” to a video's embed code, followed by the time in seconds at which you'd like the video to begin playing.
Sign in to Studio Content Manager. In the Overview section, scroll to Block embedding in apps. Click User-uploaded content and select the rule you want to apply to apps that embed user-uploaded videos claimed against one of your assets: Allow in all apps (default option): No restrictions on embedding in any app.
Here's a solution that you should be able to extend easily: http://jsbin.com/evagof
Hey here is the answer . http://jsfiddle.net/masiha/4mEDR/ Enjoy ...let me know if you have more qtns
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With