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 trial

HTML HTML Video and Audio (Retired) Media Basics The Source Element

Video 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>

I 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

One 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.

Thanks I will check that out, and I am using Google Chrome.

OMG I cannot believe that I missed that. Thanks alot I'm back on track :D.

You're welcome.