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 trialPeaches Stubbs
21,320 PointsVideo layout changed and will not play once I change the html ?
Hi guys following the video and everything was going fine until I tried the second way of using the video element. The look of the video changed and it will not play. Has anyone else had this problem and if so ho did u fix it. Here's my second code:
<video controls>
<source src="http://treehouse-code-samples.s3.amazonaws.com/html-video-and-audio/bridge.mp4" type="video.mp4">
<source src="http://treehouse-code-samples.s3.amazonaws.com/html-video-and-audio/bridge.ogg" type="video.ogg">
</video>
Jason Anello
Courses Plus Student 94,610 PointsI fixed it.
Peaches,
This thread will show you how to post code in the forums: https://teamtreehouse.com/forum/posting-code-to-the-forum
What browser are you using?
3 Answers
Jason Anello
Courses Plus Student 94,610 PointsOne thing I noticed is that your type attributes should be video/mp4
and video/ogg
.
Fix that and let us know where you're at with it.
Peaches Stubbs
21,320 PointsThanks I will check that out, and I am using Google Chrome.
Peaches Stubbs
21,320 PointsOMG I cannot believe that I missed that. Thanks alot I'm back on track :D.
Jason Anello
Courses Plus Student 94,610 PointsYou're welcome.
Garrett Sanderson
12,735 PointsGarrett Sanderson
12,735 PointsThe code isn't displaying.