Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialk. ik
901 PointsEmbedding - movie not loaded
Hi there, I know this is a simple task but when I take the code from youtube and paste it into the html file as shown in the instructions, the video does not appear on my page. I've tested on three browsers on two different computers and they all show "movie not loaded" when I rightclick the blank space where the embedded video should be. Any ideas? Thank you!
3 Answers
James Barnett
39,199 PointsI'm going to take a guess here you are trying to do this in an html file on your computer that doesn't a web server.
If that's the case ...
Protocol-less URLs don't work without a web server, so in that case just add http: in front of the URL.
>
The main caveat to keep in mind when using the protocol-less reference is that it will fail on pages loaded via file:/// (i.e. HTML pages you load directly from disk to your browser). So, do be sure to include the http: protocol in the URL if you happen to be developing without a web server at all, but donβt worry about omitting it otherwise.
source: http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/
k. ik
901 PointsHi, thanks for your reply and apologies for not watching the video first. I am learning new things all the time! Here is my code which I've copied from the embed lesson:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My Page</title>
</head>
<body>
<object width="420" height="315"><param name="movie" value="//www.youtube.com/v/_OBlgSz8sSM?version=3&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/_OBlgSz8sSM?version=3&hl=en_US" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</body>
</html>
Thanks for your help!
k. ik
901 PointsBrilliant. Worked a treat. Great to know about the difference between loading via a file and with a server. You have been super helpful, thank you!
James Barnett
39,199 PointsJames Barnett
39,199 Pointst's hard for us to know what issue you are having if you don't show us your code. For some tips on how to do that, check out the tips for asking questions video located in the right hand sidebar.