SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Embedding YouTube video

    Has something changed when it comes to embedding YouTube videos to websites? For some reason the embed codes do not work, neither the short or older long one. Any suggestions...

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I have had no problem of recent embedding youtube videos.

  3. #3
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This is the video I am having trouble with.. I wound up just adding the link but I would have preferred "embedding"

    https://www.youtube.com/watch?v=qYLwJRf8b34

  4. #4
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This is the code I would typically use

    <center><iframe width="560" height="315" src="//www.youtube.com/embed/qYLwJRf8b34" frameborder="0" allowfullscreen></iframe></center>

  5. #5
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It works here: http://jsfiddle.net/DvyuF/ do you have a flash blocker installed perhaps?

  6. #6
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hah, I have no idea what that is...like I said I have linked to many videos but this one will not work. Can you explain what a flash blocker is?

  7. #7
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

  8. #8
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,251
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    Maybe copy this page's view-source?

    i.e.
    HTML Code:
    <object width="425" height="350">
    <param name="movie" value="http://www.youtube.com/v/qYLwJRf8b34"></param>
    <embed src="http://www.youtube.com/v/qYLwJRf8b34" type="application/x-shockwave-flash" width="425" height="350"></embed>
    </object>

  9. #9
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Just occurred to me that I just upgraded to IE 11. Could that have anything to do with this? I went to your link (thank you) but it just confused me. Maybe I need to go back to IE10 or live with this problem.

  10. #10
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well I just uninstalled IE 11 and I am still having the problem....I give up. Thanks for your help.

  11. #11
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,251
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    I just came to this page using IE11 and the embedded video showed OK

  12. #12
    SitePoint Enthusiast scout1idf's Avatar
    Join Date
    Nov 2009
    Location
    Ohio
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Barnum View Post
    This is the code I would typically use

    <center><iframe width="560" height="315" src="//www.youtube.com/embed/qYLwJRf8b34" frameborder="0" allowfullscreen></iframe></center>
    I tried your code and it didn't work for me either.
    I added http: to your code......
    HTML Code:
    <center><iframe width="560" height="315" src="http://www.youtube.com/embed/qYLwJRf8b34" frameborder="0" allowfullscreen></iframe></center>
    ..... and it worked.

    Hope this helps....

  13. #13
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you, thank you, thank you scout. The html apparently was the missing link. I got it to work. Gratifying to know folks like you are out there looking to help. Appreciate it...

  14. #14
    SitePoint Enthusiast scout1idf's Avatar
    Join Date
    Nov 2009
    Location
    Ohio
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not a problem, glad to help.....


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
  •