none
Can't Embed YouTube Video RRS feed

  • Question

  • I followed the instructions. Pretty simple code to copy and paste, yet EW4 nearly crashes when I save the page, and when I try to view in Chrome it just loads a while and gives up.

    Message in EW4, inside a gray box: "Could not open page file://www.(gibberish)"

    Message in Chrome: (Unhappy Paper) "The file or directory could not be found"

    Ideas?

    Windows 7 Home Premium 64bit

    4gb memory

    Friday, August 16, 2013 10:29 PM

All replies

  • Since you didn't tell us what code you pasted, and where, all I can say is that file://www... is a file on your PC, not a link to something on the web, and it's very unlikely that a file exists at the root of your PC with a name beginning with www, and far more likely that it should be a link to something on the web.
    Friday, August 16, 2013 10:38 PM
  • Contact YouTube for assistance.
    Friday, August 16, 2013 10:57 PM
  • Contact YouTube for assistance.

    R-i-i-ght. You just give that a try, as soon as you figure out how to "Contact YouTube for assistance." If you could, their response will be, "The markup is provided. Paste it into your code wherever you want the video to appear."

    The means for embedding a YouTube video are right there on any video's page. While on the page, click on "Share," then click on "Embed," which will provide a source code block for an iframe. Copy that source code, paste it into your page's source code where you want the video to appear, and you're done.

    I just created a test page, in about 30 seconds, using...

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

    ... and it displayed the video with no issue whatsoever.

    You are aware, are you not, that you must work in code view? If you try to paste that markup into design view, results will be indeterminate. EW is NOT a WYSIWYG application. You must know and understand HTML and CSS to use it, and be familiar enough with both to work in code view. You cannot work solely in design view and expect to produce anything worth publishing. If you are not prepared to learn HTML and CSS, you might want to consider a different application.

    cheers,
    scott


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.

    Saturday, August 17, 2013 2:30 AM
  • While pasting that into Design View won't work to embed a youtube video, it wouldn't throw errors, either.   It would simply display the markup as text on the page.

    ...Still waiting for an answer to my "pasted what, and where" question.  :)

    Saturday, August 17, 2013 3:12 AM
  • Heh, heh... good point. I also noted that in my test page, down in design view, even though the video does display just fine when previewed in browser, design view displays "Could not open page file://www.youtube.com/embed/3YxaaGgTQYM" in a gray box the size of the iframe. This is probably in keeping with the fact that design view cannot display any active content of any kind, although I'm not sure why it converts the iframe src attribute to a file URL.

    In any event, when correctly used, pasted into source code, embedded YouTube video works a treat...

    cheers,
    scott


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.

    Saturday, August 17, 2013 3:31 AM
  • "down in design view, even though the video does display just fine when previewed in browser, design view displays "Could not open page file://www.youtube.com/embed/3YxaaGgTQYM" in a gray box the size of the iframe."

    That is probably the first error the OP is talking about, perhaps thinking that EW was supposed to actually play the video in Design View (to the OP: nope, not going to happen).  It doesn't explain an error in Opera....

    Saturday, August 17, 2013 3:55 AM
  • Hi ...I was having the same problem with Expression Web 4....for some reason the EW4 does not recognized the following : scr="//www.youtube.com....."... I changed that to include "http:"  and EW4 recognized with no problem...then that part should be ..scr="http://www.youtube.com/......"

    I have some video about embbedding and I realized that the iframe that their browsers generates include the "http:" part...i simply have no idea why any of my browser do not generate that part..if you know why let me know...

    Hope that helps...

    Thanks

    Carlos

    Sunday, September 1, 2013 6:14 PM
  • The link format "//www.xxx..." is protocol relative (meaning it will work from an exisiting http or https addressed page without giving the security warning box).

    This wasn't recognised in the initial version of EW V4 (or prior versions) but was corrected in V4 SP2, so it sounds as though you haven't updated your copy.

    This type of link is perfectly valid.


    Ian Haynes

    EW - V4 Add-Ins
    EW - Resources, hints and tips
    EW - Design for the Mobile Complete Web
    expression(web.blog)

    Sunday, September 1, 2013 6:54 PM
  • Carlos, you were exactly right.  That fixed my problem immediately.  Thanks for the help =)
    Tuesday, October 15, 2013 3:38 PM
  • I have been having the same problem, came on here and saw what you said Carlos, I put in http in the code and it works perfectly now! Thank you very much!

    Katie

    Thursday, October 31, 2013 9:52 AM