How do I put video in my website?
You can place and access Web-based video in one of two ways:
1. The anchor tag:
If you use this method, your visitors will either save the file to their desktop, launch a helper application, or load a new browser page, depending on how they've set their preferences and which browser they're using.
2. An embed tag:
embed src="video_file_path.mov" height=100 width=40% controller=false
autoplay=true pluginspage="URL.html" loop=palindrome>
If you want your video to stream during download, or appear on the same page as the rest of your content, you should use the embed tag. Remember, though, that the embed tag requires users to have the plug-in installed; if they don't, they won't see the video.
Embed Notes:
- height=100= Set this in pixels, according to how big your movie is, unless you want to scale your movie.
- width=40%= Again, set this to the size of your movie unless you wnat to scale it.
- Controller=false= false/true, adds buttons that let your visitors control the movie. Add at least 15 pixels to the height of your movie, otherwise the knobs will distort the movie.
- Autoplay=true= True, and your movie streams in with the page. False, and the visitor must click to play.
- Pluginspage="URL.html"= Makes the movie link to something else.
- Loop=palindrome= If you want the movie to play over and over, set this to true. If you want it to play once and stop, set it to false. If you set it to palindrome, it will play from beginning to end and then from end to beginning, continuously.
Uploading Your Website
If you already setup your site by registering your domain name and signing with a webhost you can now upload your webpage, your video and any images used on your webpage. What you need to do is go to your webhost site and log in to your account. After you should see a link for file manager. There you will upload all the files mentioned above to the root of your webspace. The root is where everything starts which would be www.youdomain.com. Now if you put a folder in your root with a file named test.html in that folder it would be located on the web at www.yourdomain.com/yourfolder/test.html.
For now we will put everything at the root. Be sure your webpage is named index.html or your domain will not find it. Now you can open up a browser and go to your website and view your webpage with the video. If for some reason you cannot find a file manager to upload your web content at your webhost, you can manually do it by opening up internet explorer. Type in the URL Locator ftp://yourdomain@yourdomain.com then hit enter. A window should pop up asking for your username and password. This is the same username and password you have set up at your webhost. Once you get in you are at your root directory. Simply copy and paste your files in there which is the same as uploading them. Sometimes when uploading this way you need to keep an eye on it because occasionally it will time out and you will not get everything uploaded in one shot. It may take a few times so try not to upload too many files at once this way. Finally, once you get everything up and go visit your domain, www.yourdomain.com, you will see you site.