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

General Discussion

Jack Campbell
Jack Campbell
1,822 Points

Making a website like YouTube

I am building a website sort of like youtube how hard is it going to be to make a video sharing feature in my site that is not YouTube and does not need downloads to view the videos.

Thanks so much!

1 Answer

This question is rather difficult to answer because you don't specify what features nor the level of complexity you're looking for. But adding actual videos to a website is really easy with HTML 5.

<video width="320" height="240" controls="controls">
   <source src="movie.mp4" type="video/mp4">
</video>
Jack Campbell
Jack Campbell
1,822 Points

Thanks that really helps. Is there a way so that users on the site can upload videos as well?

Of course! You can upload files with the following HTML tag:

<input type="file" name="video_upload">

The above would have to be within a <form> tag of course which, on submission, is handled by a php script which takes the file and puts it in the desired directory. It's quite a lengthy procedure to post here, but there are many tutorials on how to do this google it.