How to play FLV files

Source: Internet
Author: User
Tags flv file

Usage:

Method 1. js embedding

Directly copy the followingCodeModify the red part, that is, swf_width, swf_height, texts, and files parameters.

<SCRIPT type = "text/JavaScript">
VaR swf_width = 240
VaR swf_height = 240
VaR texts = 'Transformers-trailers'
VaR files = 'HTTP: // www.transformersmovie.com/transformers_640.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 "width =" '+ swf_width +' "Height =" '+ swf_height +' "> ');
Document. Write ('<Param name = "movie" value = "http://www.luie.cn/flash/flv.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.luie.cn/flash/flv.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:
      Transformers-the title of the trailer.
      Http://www.transformersmovie.com/transformers_640.flv FLV file address.
      Http://www.luie.cn/flash/flv.swf 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.luie.cn/flash/flv.swf

 

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, 240 "width =" 180 "Height =" ">
<Param name = "movie" value = "http://www.luie.cn/flash/flv.swf? Vcastr_file = http://www.transformersmovie.com/transformers_640.flv ">
<Param name = "quality" value = "high">
<Param name = "allowfullscreen" value = "true"/>
<Embed src = "http://www.luie.cn/flash/flv.swf? Vcastr_file = http://www.transformersmovie.com/transformers_640.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






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

 

 

Advanced options






Http://www.luie.cn/flash/flv.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 2 red parts

Http://www.luie.cn/flash/flv.swf modify

For example:

Value = "http://www.luie.cn/flash/flv.swf? Vcastr_file = login"

The video address is "http://www.transformersmovie.com/transformers_640.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, 500 "width =" 224 "Height =" ">
<Param name = "movie" value = "http://www.luie.cn/flash/flv.swf? Vcastr_file = plugin ">
<Param name = "quality" value = "high">
<Param name = "allowfullscreen" value = "true"/>
<Embed src = "http://www.luie.cn/flash/flv.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>
</Object>

 

 

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.

 

      Q: How to Set advanced parameters in XML
      Answer:

 

<Param name = "flashvars" value = "vcastr_xml = Alibaba | transformers trailer | Jiangnan music video | World of Warcraft-Good night tribe & barcolor = 0xff6600 & barposition = 1"/>
<Embed src = "http://www.ruochi.com/product/vcastr2/vcastr2.swf" allowfullscreen = "true" flashvars = "vcastr_xml = transformers | transformers trailer | Jiangnan MV | World of Warcraft-Good night tribe & barcolor = 0xff6600 & barposition = 1">
      Q: it cannot be full screen.
      A: You need to upgrade to flashplayer9.0 or above.

 

      Q: You cannot exit full screen.
      A: Double-click to enter or exit full screen

 

      Q: The progress of a video cannot be dragged.
      A: It is because some information is lost when converting the file format, you can use FLV metadata injector repair,: http://www.buraks.com/flvmdi;

 

      Q: FLV cannot be played when it is placed on its own server.
      Answer: Success

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.