Detecting a play event in youtube api
问题 I'm looking for a way to detect a play event in an embedded Youtube video via Javascript. Right now I'm able to detect state change, but I can't figure out how to unbind the event after and fire another event saying that it's complete. I'd also prefer not to use add/removeEventListener because I guess IE8 and below don't have this function. My code so far, function onYouTubePlayerReady(playerId) { console.log('loaded'); var ytPlayer = document.getElementById(playerId); ytplayer