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

Matthew Smart
Matthew Smart
12,567 Points

How to show video thats saved in a file directory?

Lets say I have a folder structure;

website -img -css -js -videos

I have 10 videos in the videos folder.

How do I display one of the videos in my folder on my website?

1 Answer

It would be better if you had it online line like youtube or vimeo and or used a html5 video player so that it wouldn't slow down your site.

<video controls>
<source="../videos/nameofvideo.mp4 type="video/mp4""