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

Rouillie Wilkerson
Rouillie Wilkerson
10,419 Points

How do I upload personal video from my hard-drive to Sublime Text Editor?

How do I upload personal video from my hard-drive to Sublime Text Editor?

I've been using Sublime to work on a website progject, only to find that I can't upload my personal videos, only anchor them from some site like Youtube. Why is this? How do I get my personally recorded material on Sublime?

Thanks in advance!

1 Answer

Dane Parchment
MOD
Dane Parchment
Treehouse Moderator 11,077 Points

I think your questions should be rephrased to: "How do I upload a video to my website without using anchor tags." You can't upload a video to your text editor.

As for how to add a video to your website without using an anchor tag:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

Just make sure you have the video either uploaded to a server (for a live site), or available in a folder somewhere (for a local website i.e localhost).

Rouillie Wilkerson
Rouillie Wilkerson
10,419 Points

Thanks Dane! However, as for: " <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> " Are these options, but I wouldn't actually use both at the same time?

Also, "Your browser does not support the video tag." Why is this phrase in there?

Dane Parchment
Dane Parchment
Treehouse Moderator 11,077 Points

I am at work so I don't have time to give you a better writeup so I will instead leave 2 sources for you.

W3Schools Video Tag - This is a great high-level beginner overview of the video tag, and where I even got the example code. Really easy to understand.

MDN Video Tag - This a great developer overview of the video tag by MDN. It is very technical though and may be more catered towards intermediate to advanced developers.