This guide provides a very easy step-by-step process to set up your website to stream an FLV video clip directly on a http connection.
To make a webpage containing your FLV clip:
- You will first need a player / controller in SWF format.
- It is the SWF file which will be embedded in your webpage as a normal Flash element.
- The SWF file will load any FLV video files and display them on the page, as well as control any function like start/stop.
- There are many ways to make the SWF player, and there are many SWF open source players ready to use.
- I would suggest to download this one by Jeroen Wijering (but you may do your research and find a more suitable one for you).
- Copy the files on your webserver.
- In the sample code below, Replace the file "video.flv" with your own flv file.
- Place the embed code below between the "<body>HERE</>" tags and upload all files to your server.
- Point your browser to the HTML file that you just saved and uploaded and you should see and hear the movie playing in the browser.
- Here is the sample embed code for the FLV clip:
<embed src=”http://www.yoursite.com/player.swf” width=”320″ height=”240″ allowscriptaccess=”always” allowfullscreen=”true” flashvars=”height=240&width=320&file=/video.flv”/>
- Be sure to replace "yoursite.com" with your actual site URL, or location to the video player.swf
- The height should be the height of the movie+20 to allow for the control bar.
- The "flashvars=" parameter provides the actual relative or absolute URL to the FLV file.
- The "autoStart=" parameter can be set added if you want. By default, it is set to false to avoid the movie beginning to play immediately (good to save bandwidth), and rather wait for a click.
Don't Miss Any Stories!
Get daily online video news, tips and trends via email!