Home Misc Articles Other Posting Flash (.flv) Video on your web site

Posting Flash (.flv) Video on your web site

User Rating: / 1
PoorBest 
AddThis Social Bookmark Button

If you have been paying attention you have read the PCModer articles we wrote that explained how to create a Flash or .flv video, but how do you get it on your web site?? Well you may have tried to post the file alone and noticed that it will not play...Congrats on your effort, nice try but that won't work! You have to have a player on your site for Flash videos to play. There are a few out there you can pay for but we have a Free Flash Web player you can use. It is JW Player and works quite well.

You will need to get the "player.swf" file from JW player and put it on your site. Once that is done you simply put some HTML in your site code and then as if by magic your site is playing Flash Videos.

Here is some sample code for you to use:

<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="600" height="400">
<param name="movie" value="player.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />

<param name="flashvars" value="file=YOUR_FLASH_VIDEO.flv&image=preview.jpg" />
<embed
type="application/x-shockwave-flash"
id="player2"
name="player2"
src="/player.swf"
width="624"
height="352"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=YOUR_FLASH_VIDEO.flv&image=preview.jpg"
/>
</object>
<!-- END OF THE PLAYER EMBEDDING -->

The preview.jpg is any picture you want in the window of the player when the video player loads and is not yet playing. The other options are fairly self explanatory. Getting Flash to play on your site can be confusing until you realize you need software on you site in addition to the flash file to get it to play. This is great if you do not want to have to depend on Youtube or some other provider to host your videos.

 
Search
Content Sharing

Creative Commons License
USE THIS CONTENT
This work by http://www.pcmoder.com is free to share. You may reuse the text as long as you include a link back to PCModer.com. Work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at www.pcmoder.com

.

Back up your data with clonezilla

submit

 

Get Published!!

Do you have an article you want to get published? Have an idea? Write some software you want to get reviewed? PCModer wants your content. If you would like to be exposed to thousands of views per month all you need to do is let us know by clicking on the contact us link above or simply Send PCModer an email!!