1. Download flvplayer.swf.
2. Create an XML configuration file.
<?xml version= "1.0" encoding= "Utf-8"?> <vcaster> <item item_url= "flv path" item_title= "FLV title" ;</item> <item item_url= "flv path" item_title= "flv title" ></item> </vcaster>
3. In the body of the HTML:
<object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase= "http// download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 " width=" 470 " height=" 310 " wmode=" opaque "> <param name=" movie " value="/global/flv/ Flvplayer.swf?vcastr_xml=/global/flv/flv.xml&isautoplay=1&iscontinue=1&israndom=1 "> <param name= "Quality" value= "High" > <param name= " Wmode " value=" Transparent "/> <param name=" allowfullscreen " value=" True "> <embed src="/global/flv/flvplayer.swf?vcastr_xml=/global/flv/flv.xml &isautoplay=1&iscontinue=1&israndom=1 " wmode=" Transparent " allowfullscreen=" true " quality= "High" pluginspage= "Http://www.macromedia.com/go/getflashplayer" type= " Application/x-shockwave-flash " wIdth= "470" height= "310" windowlessvideo= "1" ></embed> </object>
PARAM tags are used by IE, embed tags are used by Firefox and Google.
4. Parameter Description:
Parameter name
|
Description
|
Default value
|
Vcastr_file |
Pass the movie FLV file address parameter, multiple use | separate |
Empty |
Vcastr_title |
Movie title parameter, multiple use | separate, use with vcastr_file |
Empty |
Vcastr_xml |
Pass the movie FLV file address parameter |
|
Isautoplay |
Movie AutoPlay parameters: 0 means no AutoPlay, 1 means autoplay |
0 |
Iscontinue |
Movie Continuous playback parameters: 0 for non-sequential playback, 1 for continuous cyclic broadcast |
1 |
Israndom |
Movie Shuffle parameters: 0 means no random play, 1 means random play |
0 |
Defaultvolume |
Default Volume parameter: 0-100 value, set movie start default volume size |
100 |
Logourl |
Can read the logo image from the outside, pay attention to adjust the logo size, support image format and SWF format |
Empty |
endswf |
After the movie playback, from the external read SWF file, you can add related movie information, video sharing and other information, need to make their own |
Empty |
beginswf |
Before the movie starts playing, read the SWF file from the outside, you can add ads, or website information, you need to make |
Empty |
Isshowtime |
Show Time: 0 indicates no time, 1 indicates time |
1 |
BufferTime |
Movie Buffer time, unit (seconds) |
2 |
P.S. The parameters section can also be Baidu, there will be more detailed explanation.
Embed FLV video files in HTML