I'm going to embed some YouTube videos on my website. My question is: Is it in the realm of possibility to, with javascript, detect when a visitor played the video? Perhaps some way to detect clicks within that area without eating the clicks? For reference, the method by which such a video is embedded: <object width="319" height="258"><param name="movie" value="http://www.youtube.com/v/oiTg_jGLV4A&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/oiTg_jGLV4A&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="319" height="258"></embed></object> Code (markup): Thanks and interesting!
hi, You can control whole youtube player with javascript using 'YouTube JavaScript Player API', take a look here for more details: http://code.google.com/intl/pl/apis/youtube/js_api_reference.html