The FLV must be at version 1.1. Remember to convert youtube, dailymotions videos... otherwise you wouldn't see any progress bar, loop...
A free Open Source (BSD license) software allows to add the required information to FLV 1.0 videos : FLVTOOL2.
Adobe also provides a FLV files checker.
Some problems may appear with Internet Explorer (not systematically). If the video is very small, it is necessary to force the size of the SWF with the width
and height
parameters, for example :
<object type="application/x-shockwave-flash" data="player_flv.swf" width="200" height="150"> <param name="movie" value="player_flv.swf" /> <param name="FlashVars" value="flv=test.flv&width=200&height=150" /> </object>
When the URL of the FLV is in a different domain, the srt files are not loaded; this is a security of the Flash Player. It is necessary to create a crossdomain.xml
file at the root of the site hosting the video. It must contain the domains authorized to load the srt files.
If the player is hosted on resources.neolao.com
and loads the video on http://download.neolao.com/videos/KyodaiNoGilga.flv
, it is necessary to create the following XML file (http://download.neolao.com/crossdomain.xml
) :
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="resources.neolao.com" secure="false" /> </cross-domain-policy>
Fullscreen only works with Flash Player newer than 9.0.16.
Fullscreen is not compatible with wmode
transparency. So, don't use the following code:
<param name="wmode" value="transparent" />
Fullscreen still doesn't work on Linux.
The option indicates the control bar:
With Opera, it is necessary to user the <embed>
, tag, but it is not recommended.
<object id="monFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240"> <param name="movie" value="player_flv_multi.swf" /> <param name="FlashVars" value="flv=test.flv" /> <embed name="monFlash" src="player_flv_multi.swf" flashvars="flv=test.flv" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" /> </object>
function getFlashObject(movieName) { if (window.document[movieName]) { return window.document[movieName]; } if (navigator.appName.indexOf("Microsoft Internet") == -1) { if (document.embeds && document.embeds[movieName]) return document.embeds[movieName]; } else { return document.getElementById(movieName); } } function play(index) { var flash = getFlashObject("monFlash"); flash.SetVariable("player:jsPlay", index); }