Is there any way to detect with javascript when a youtube video starts playing?
问题 Is there an "onload" of the video for an embeded youtube iframe? I'd like to start my script only after the music video i have selected starts. I have stuck an onload event onto the iframe the youtube video is delivered in, but that does not correspond to the loading (buffering has finished ready to play) of the actual video. It only corresponds to when the video player has been loaded in the page. In other words, is there any way to detect with javascript when a youtube video starts playing?