Skip to main content
denno
Known Participant
September 15, 2020
Answered

Embedded YouTube vid Works in preview, not online

  • September 15, 2020
  • 3 replies
  • 478 views

Hello

Long time since I have (dis)graced these halls.

This page    www.sonnyandperley.com/index.htm

Has 3 embedded YouTube videos at the bottom of the page.  Only one is showing online.  (This is a change from "awhile ago" when all was fine.  Don't know what may have changed.)

 

When I preview from DW in Firefox, I can see the other two videos.  Re-uploaded, but no dice.
What do you know that I don't?

 

TIA

denno

    This topic has been closed for replies.
    Correct answer Ben M

    The issue was not as obvious to me at first, but your include that is not working is using http and not https.  Because you are using a SSL certificate on your site, most modern browsers will block what is called Mixed Content, or basically trying to put insecure content on a secure page.  I would just go and grab new code from Youtube for that video, or simply change the http to https and you should be good to go.

    3 replies

    Nancy OShea
    Community Expert
    Community Expert
    September 16, 2020

    For future reference, bookmark this link.

    https://www.whynopadlock.com/

     

     

     

    Nancy O'Shea— Product User & Community Expert
    Ben MCommunity ExpertCorrect answer
    Community Expert
    September 15, 2020

    The issue was not as obvious to me at first, but your include that is not working is using http and not https.  Because you are using a SSL certificate on your site, most modern browsers will block what is called Mixed Content, or basically trying to put insecure content on a secure page.  I would just go and grab new code from Youtube for that video, or simply change the http to https and you should be good to go.

    denno
    dennoAuthor
    Known Participant
    September 15, 2020

    Thank you both.  This is something I would not have observed or known about.  At this point I just update two or three sites for musician friends, including me.

    Appreciate the quick look and  quick fix.

     

    denno

    BenPleysier
    Community Expert
    Community Expert
    September 15, 2020

    If you have a good look at the code of the video that works:

     

    <iframe width="560" height="315" src="https://www.youtube.com/embed/NRhVUTbU-VM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

     

    and compare that with the code of one of the videos that does not show:

     

    <iframe width="640" height="360" src="http://www.youtube.com/embed/GNCumJ-Rbj0?feature=player_embedded" frameborder="0" allowfullscreen></iframe>

     

    you may be able to figure out what is wrong.

     

    As a side note, have a look at https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.sonnyandperley.com%2Findex.htm

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