SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2005
    Posts
    421
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE 9 and iframe embedding of youtube videos

    I am using the Zend_GData library to obtain a list of users uploaded videos from youtube. The user can then select a video and insert it into a blog post.

    This works perfectly with firefox using the new(er) iframe code to embed the video, but the same code in IE9 opens a dialog "What do you want to do with [youtube filename].swf - open, save, saveas".

    The embed url i am creating is:

    PHP Code:
    $videoUrl 'http://www.youtube.com/v/' $videoEntry->getVideoId() . '&rel=0;'
    which is inserted into the view as the following code:
    HTML Code:
    <iframe src="http://www.youtube.com/v/[~video-id-here~]&rel=0;" width="320" height="240"></iframe>
    What do i need to do differently to get it showing in ie9?

  2. #2
    SitePoint Guru aamonkey's Avatar
    Join Date
    Sep 2004
    Location
    kansas
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you're using the wrong url to embed. the iframe source should be:

    Code:
    http://www.youtube.com/embed/[~video-id-here~]
    aaron-fisher.com - PHP articles and more


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •