embedding code of youtube

Discussion in 'PHP' started by goutam.dutta123, Jan 14, 2009.

  1. #1
    Hi Expert,
    We have embed the code of videos from youtube.The video are displaying and working fine but when the video is getting clicked , the site is getting redirected to youtube.com. we want to disabled this link.That is,we want to embed the code from youtube but we dont want this link.Please advise us how to remove this link from the embedding code from videos of youtube.


    Thanks ,
    Goutam
     
    goutam.dutta123, Jan 14, 2009 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    I am pretty sure there is no way to disable this link. It is embedded into the code of the SWF file you are embedding, so it can not be modified.

    If you wanted to get really tricky, You could make a transparent 1px by 1px image, then create a div that covers the entire youtube video ACCEPT for the navigation buttons (play, pause, volume, etc) so that when people go to click the video, it wont click the embedded element.

    But let youtube have their traffic :p
     
    crath, Jan 14, 2009 IP
  3. anversli

    anversli Active Member

    Messages:
    350
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    anversli, Jan 14, 2009 IP
  4. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #4
    I think hes just trying to embed youtube videos, not host his own content. Unless he can link directly to the flv hosted by youtube with that.
     
    crath, Jan 14, 2009 IP
  5. goutam.dutta123

    goutam.dutta123 Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for your reply.It solves my issue.Thanks a lot .
     
    goutam.dutta123, Jan 15, 2009 IP