Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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""
</video>