Parameter description in the video player code using flvplayer vcastr

Source: Internet
Author: User
Tags flv file

Usage:

Method 1. js embedding

Copy the following code directly and modify the red part, that is, the swf_width, swf_height, texts, and files parameters.

<SCRIPT type = "text/JavaScript">
VaR swf_width = 240
VaR swf_height = 240
VaR texts = 'Happy ankle trailer'
VaR files = 'HTTP: // www.ruochi.com/product/vcastr/flv/happy_feet.flv'
Document. write ('<object classid = "CLSID: d27cdb6e-ae6d-11cf-96b8-444553540000" codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width = "' + swf_width + '" Height = "' + swf_height + '"> ');
Document. Write ('<Param name = "movie" value = "http://www.ruochi.com/product/vcastr2/vcastr22.swf"> <Param name = "quality" value = "high"> ');
Document. Write ('<Param name = "menu" value = "false"> <Param name = "allowfullscreen" value = "true"/> ');
Document. Write ('<Param name = "flashvars" value = "vcastr_file =' + files + '& vcastr_title =' + texts + '"> ');
Document. write ('<embed src = "http://www.ruochi.com/product/vcastr2/vcastr22.swf" allowfullscreen = "true" flashvars = "vcastr_file =' + files + '& vcastr_title =' + texts + '" menu = "false" Quality = "high" width = "'+ swf_width +'" Height = "'+ swf_height +'" type = "application/X-Shockwave-flash" pluginspage = "http://www.macromedia.com/go/getflashplayer"/> '); document. write ('</Object> ');
</SCRIPT>

 

    Where:
    Happy ankle trailer is the title.
    The http://www.ruochi.com/product/vcastr/flv/happy_feet.flv is the FLV file address.
    The http://www.ruochi.com/product/vcastr2/vcastr22.swf is the FLV file player address (if you don't make it, you can download someone else's and upload it to your own space before calling ).

 

 

    Download flvplayer vcastr 2.0
    Http://www.ruochi.com/product/vcastr2/vcastr22.zip

 

Method 2: directly transfer the video address

<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 = "240" Height = "180">
<Param name = "movie" value = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_file = http://www.ruochi.com/product/vcastr/flv/happy_feet.flv ">
<Param name = "quality" value = "high">
<Param name = "allowfullscreen" value = "true"/>
<Embed src = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_file = http://www.ruochi.com/product/vcastr/flv/happy_feet.flv "allowfullscreen =" true "Quality =" high "pluginspage =" http://www.macromedia.com/go/getflashplayer "type =" application/X-Shockwave-flash "width =" 240 "Height =" 180"> </embed>
</Object>

Method 3: Read the video XML

<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 = "240" Height = "120">
<Param name = "movie" value = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_xml = http://www.ruochi.com/product/vcastr2/vcastr.xml ">
<Param name = "quality" value = "high">
<Param name = "allowfullscreen" value = "true"/>
<Embed src = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_xml = http://www.ruochi.com/product/vcastr2/vcastr.xml "allowfullscreen =" true "Quality =" high "pluginspage =" http://www.macromedia.com/go/getflashplayer "type =" application/X-Shockwave-flash "width =" 240 "Height =" 120"> </embed>
</Object>

Where:The http://www.ruochi.com/product/vcastr/vcastr.xml is the XML address of the playlist

Advanced options

<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 = "240" Height = "180">
<Param name = "movie" value = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_file = http://www.ruochi.com/product/vcastr/flv/happy_feet.flv ">
<Param name = "quality" value = "high">
<Param name = "allowfullscreen" value = "true"/>
<Embed src = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_file = http://www.ruochi.com/product/vcastr/flv/happy_feet.flv "allowfullscreen =" true "Quality =" high "pluginspage =" http://www.macromedia.com/go/getflashplayer "type =" application/X-Shockwave-flash "width =" 240 "Height =" 180"> </embed>
</Object>
Http://www.ruochi.com/product/vcastr2/vcastr22.swf? Parameter A = 111 & parameter B = 222 &...>

Add the parameter in the "parameter A = 111 & parameter B = 222" section and use the parameter = value format. Multiple parameters are connected with &. The number of parameters is unlimited, note that there are two red parts to be modified at http://www.ruochi.com/product/vcastr2/vcastr22.swf

For example:

Value = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_file = login"

The video address is "http://www.ruochi.com/product/vcastr/flv/happy_feet.flv", the title is "Transformers trailer", the control bar color is 0xff6600, the control bar is located below.

<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 = "500" Height = "224">
<Param name = "movie" value = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_file = plugin ">
<Param name = "quality" value = "high">
<Param name = "allowfullscreen" value = "true"/>
<Embed src = "http://www.ruochi.com/product/vcastr2/vcastr22.swf? Vcastr_file = inherit "allowfullscreen =" true "Quality =" high "pluginspage =" http://www.macromedia.com/go/getflashplayer "type =" application/X-Shockwave-flash "width =" 500 "Height =" 224"> </embed>
Parameter Name Parameter description Default Value
Vcastr_file Method 2: Pass the FLV file address parameter of the video. Multiple uses | separate Null
Vcastr_title Video title parameters, multiple use | separated, used with method 2 Null
Vcastr_xml Method 3 Transfer the FLV file address parameter of the video, and the template reference http://www.ruochi.com/product/vcastr2/vcastr.xml Vcastr. xml
Isautoplay Automatic Video Playback parameter: 0 indicates no automatic video playback, and 1 indicates automatic video playback. 0
Iscontinue Video continuous playback parameter: 0 indicates non-continuous playback, and 1 indicates continuous loop playback. 1
Israndom Random video playback parameter: 0 indicates no random video playback, and 1 indicates random video playback. 0
Defaultvolume Default volume parameter: A value ranging from 0 to 100. This parameter sets the default volume for starting a video. 100
Barposition Control bar position parameter: 0 indicates floating display on the video, 1 indicates displaying below the video 0
Isshowbar Parameters in the control bar: 0 indicates not to be displayed; 1 indicates to be displayed all the time; 2 indicates to be displayed when the mouse is hovering; 3 indicates not to be displayed at the beginning, and after the mouse is hovering 2
Barcolor The color of the playback control bar, which is represented by a hexadecimal number starting with 0x. Zero X 000033
Bartransparent Playback control bar transparency 60
Glowcolor The color of the key icon. The color is represented in hexadecimal notation starting with 0x. 0x66ff00
Iconcolor Hover the mouse over the time dizzy color, and the color is represented by a hexadecimal number starting with 0x 0 xffffff
Textcolor The color of the player text, which is expressed in hexadecimal notation starting with 0x. 0 xffffff
Logotext You can add information such as your website name) Null
Logourl You can read logo images from the outside, and adjust the logo size by yourself. The image format and swf format are supported. Null
Endswf After a video is played, the SWF file is read from the outside. You can add information about the video and share the video. Null
Beginswf Before the video starts to play, read the SWF file from the outside and add advertisements or website information. Null
Isshowtime Show time: 0 indicates no time, 1 indicates the display time 1
Buffertime Video buffer time, in seconds) 2

FAQs

 

    Q: The logo text cannot be displayed.
    A: The logo text cannot support Chinese characters. You can use logourl.pdf to make logoa. SWF file. PNG file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.