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

Swapping video sources for a web site header — doesn't seem to be working

I am working on my dad's website (http://kgshowroom.com/test) and am trying to put in a looping video header in the top of the site. Right now I have a placeholder I put in of the milky way at night, but I created a super simple video that I uploaded to youtube (private): https://www.youtube.com/watch?v=9lQiiyzBMvo

I tried swapping out the code in my index.html file where the old source code was (previously, it linked to a vimeo source). I've checked the css and I'm not seeing anywhere else where it could possibly need to be updated other than where I updated it already.

<div class="header-video"> <img src="img/masthead.jpg" class="header-video--media" data-video-src="9lQiiyzBMvo" data-teaser-source="video/masthead-teaser" data-provider="Youtube" data-video-width="500" data-video-height="281"> <a href="https://www.youtube.com/watch?v=9lQiiyzBMvo">

(The youtube URL is the part I updated, then I added the 9lQiiyzBMvo to the "data-video-src" just in case. Neither worked).

Any ideas?

2 Answers

I took a look at your source code quickly, and I see what you're saying.

Try changing the settings on the video to "unlisted" rather than "private."

https://www.youtube.com/watch?v=UydKSV1mKi4

Thanks, Stephen Van Delinder — just gave that a go, but it doesn't look like it's doing anything. Thoughts?

Un momento, por favor.

Ha ha! I say the same thing to my friends all the time, Stephen Van Delinder — you can have a moment! :)