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 Creating Media

Is it bad practice to embed videos into a website using free video hosts like YouTube, Vimeo, etc?

I'm currently taking the HTML Audio and Video course and It seems like this is a lot of work for something that video sites like YouTube already do for you.

Don't get me wrong, I'm happy to learn how to do it on my own and to "host" the videos but I'm just trying to understand the "whys"

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Scott, No, I personally don't think it's bad at all. In fact, I'm sure it was in one of the courses/workshops here on Treehouse, that they talk about more and more developers putting the videos on YouTube and embedding them into the site instead of hosting the videos. This proves many benefits: everything from space on your sever being saved to browser compatibility.

So, in my opinion, it is actually better to have your videos hosted on 3rd party sites and just embed them in your site. If I can remember the course/lecture I watched on why it is so much better to use YouTube, I will let you know.

Keep Coding! :)

I'd be interested in that, let me know if you find it, I'll also look for it too. I don't want to knock Treehouse but if the practice is good to embed videos instead of hosting is there a point to having the HTML Video and Audio course on the Front End Developer track?

Kevin Korte
Kevin Korte
28,149 Points

For most of us, using Youtube or Vimeo is a great option. But learning how to not use those services is also valuable. Imagine you're building a paid subscription website with videos, you wouldn't want those videos hosted, and thus open to free viewing on Youtube or Vimeo?

You might get hired by a company that already has an existing HTML5 video player set up, you'd have to adapt to that vs saying you're going to move all of their videos to a 3rd party. It's a valuable set of knowledge to still have.

Kevin, I didn't even think of that. The more you know!

Kevin Korte
Kevin Korte
28,149 Points

Well, ya know. We're all here for the same goal. :)

Jeff Lemay
Jeff Lemay
14,268 Points

It is GOOD practice to use YouTube or Vimeo to host your videos. Better browser support than HTML5 videos and they host the videos and handle the traffic for you (saves you bandwidth and $).

That's what I was thinking but I felt confused to why I'd be taking HTML Video and Audio course. Thanks for the input Jeff.

Kevin Jenkins
Kevin Jenkins
12,630 Points

At the same time, you probably want to avoid ads, recommended Next videos, etc...

Plus YouTube quality can be pretty poor at times.