Detecting such an interaction as

Discussion in 'JavaScript' started by phree_radical, Feb 8, 2010.

  1. #1
    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! :)
     
    phree_radical, Feb 8, 2010 IP
  2. mariush1007

    mariush1007 Member

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    mariush1007, Feb 8, 2010 IP
  3. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ooh I see there, that's quite cool. Thank you mariush
     
    phree_radical, Feb 8, 2010 IP