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 trialRandy Crowson
2,531 PointsYoutube embedded code
I copy the embedded code and my page is blank. Here is my code:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>My Page3</title> </head>
<body>
<object width="420" height="315"><param name="movie" value="//www.youtube.com/v/_OBlgSz8sSM?hl=en_US&version=3">
</param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="//www.youtube.com/v/_OBlgSz8sSM?hl=en_US&version=3" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
</body>
</html>
7 Answers
Randy Crowson
2,531 PointsI am using Notepad++ is it on there. Now it is saying Shockwave crashed.
Dennis Castillo
16,018 PointsJust curious, you're using "Object"? to embed the youtube video?
Randy Crowson
2,531 PointsI copied the embedded code from the same video that is on the turorial:
<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>
Dennis Castillo
16,018 PointsIt's seems very hard to figure it out without showing your code, as of now all I can think of is: you're using "Object" and you just copy the embedded code and your Shockwave did crush...
it is your web browser has like plugin to play videos on the web? specially for some other web browser. just curious...
Randy Crowson
2,531 PointsI rebooted and shockwave is working on other apps, but this will not show anything but a blank page.
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>My Page3</title> </head>
<body>
<object width="420" height="315"><param name="movie" value="//www.youtube.com/v/_OBlgSz8sSM?hl=en_US&version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/_OBlgSz8sSM?hl=en_US&version=3" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</body>
</html>
Dennis Castillo
16,018 PointsWell I check it again about the Embedding elements. try this don't copy what is in the tutorial videos... Visit youtube and goto "share" - "embed" check the "Use old embed code" it will appear the embedding code in object, copy it and try it...
This is might help you to start it again... Good Luck and God Bless :)
Randy Crowson
2,531 PointsDennis, That is what I did.
Tom Mertz
15,254 PointsTom Mertz
15,254 PointsHey Randy,
Could you wrap your code using the code markdown? You can find it under the Markdown Cheatsheet to the bottom right of the text input. Then we can see it and help you out :)