Skip to main content
Inspiring
November 13, 2021
Question

Video data failed to load error message

  • November 13, 2021
  • 2 replies
  • 391 views

Windows 10 / Dreamweaver 21.2

While going through the New York Times site, I came upon a nice video about making a proper apple pie which included a section in the article that provided code for an iframe along with verbiage that said the code was "for your site."

I copied the code and grabbed a Dreamweaver starter template that appeared to be workable to post the video on my site, deleted what I did not want and built and uploaded the page.

Everything uploaded just fine but the iframe is returning an error message "Video Data Failed to Load." Since the NYT wants one to post the video, I am presuming that I have made some sort of mistake that prevents it from loading, primarily because of my limited knowledge of making HTML work right.

Pie video that does not work for me

Can anyone help me fix this issue?

Thanks to those who know more than me,

Joe

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    November 13, 2021

    It failed because you didn't source the video feed directly from YouTube's website.

     

    Use this code and it should work.

    <iframe width="560" height="315" src="https://www.youtube.com/embed/3mg52JOs8_Y" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

     

     

    Nancy O'Shea— Product User & Community Expert
    Community Expert
    November 13, 2021

    It looks like something was missing from what you copied because your iframe has this at the end of the SRC attribute: "videoId=unknown". To me that seems like some string should exist there to grab the right video from their site. Can you double check the code you got from them?

    Inspiring
    November 13, 2021

    Thanks, I'll do it.

    Joe

    Inspiring
    November 13, 2021

    Ben, I checked on the iframe markup and the weirdness is "in there." After nosing around a bit more, I got lucky and found the YouTube version and it works like a charm.

     

    Thanks and if you know or have a cook in your family, the video may be of interest.

    Thanks again,

    Joee