Skip to main content
Inspiring
April 14, 2018
Answered

You Tube Video wont embed

  • April 14, 2018
  • 3 replies
  • 882 views

I copied a you tube video code I want to embed into a simple html page I have but all I get after uploading it via ftp is the code. Stumped thanks.

    This topic has been closed for replies.
    Correct answer BenPleysier

    If the code is correct, then there is a problem with the video. One test is to click the URL part of code, i.e. "https://www.youtube.com/embed/ePbKGoIGAXY". This should show the video albeit on the YouTube site.

    3 replies

    Nancy OShea
    Community Expert
    Community Expert
    April 14, 2018

    If you're using Bootstrap, the responsive video embed codes are shown below.

    Embedded 4:3 Responsive Aspect Ratio (YouTube video)

    <div class="embed-responsive embed-responsive-4by3">
    <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/ePbKGoIGAXY"></iframe>
    </div>

    Embedded 16:9 Responsive Aspect Ratio (YouTube video)

    <div class="embed-responsive embed-responsive-16by9">
    <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/ePbKGoIGAXY"></iframe>
    </div>

    Nancy O'Shea— Product User & Community Expert
    larry45Author
    Inspiring
    April 14, 2018

    Ben thanks, I plugged in my numbers to your version with object,   but still did not work, just shows code, no video.

    <object data="http://www.youtube.com/embed/mywebsite" width="560" height="315"></object>

    You Tube gives this

    <iframe width="560" height="315" src="https://www.youtube.com/embed/mywebsite" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

    (I put in "my website for anonynimity), but get the idea, just get code on page, no video; baffled still.

    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    April 15, 2018

    If the code is correct, then there is a problem with the video. One test is to click the URL part of code, i.e. "https://www.youtube.com/embed/ePbKGoIGAXY". This should show the video albeit on the YouTube site.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    magical_Skyline0D4A
    Inspiring
    April 14, 2018

    there is definitely a ">" or "</ ..>" tag broken ... check carefully

    BenPleysier
    Community Expert
    Community Expert
    April 14, 2018

    <object data="http://www.youtube.com/embed/ewKcOd6BLcU" width="560" height="315"></object>

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!