Skip to main content
denno
Known Participant
Sep 15, 2020 1:56 AM UTC
Answered

Embedded YouTube vid Works in preview, not online

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 is closed to new replies. Start a new post to keep the conversation going.
    Ben MCorrect answer
    Community Expert
    Sep 15, 2020 1:07 PM UTC

    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.

    4 replies

    Nancy OShea
    Community Expert
    Community Expert
    Sep 16, 2020 10:41 PM UTC

    For future reference, bookmark this link.

    https://www.whynopadlock.com/

     

     

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Ben MCommunity ExpertCorrect answer
    Community Expert
    Sep 15, 2020 1:07 PM UTC

    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.

    Translate
    denno
    dennoAuthor
    Known Participant
    Sep 15, 2020 1:49 PM UTC

    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

    Translate
    BenPleysier
    Community Expert
    Community Expert
    Sep 15, 2020 6:10 AM UTC

    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

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