How to embed and play FLV media files in HTML

Source: Internet
Author: User
Tags ranges flv file


Player Files
I found a good player with no advertisement and the appearance conforms to the current aesthetic.
Portal: flvplayer.swf
Playback code

The code is as follows: Copy code

<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 = "400">
<Param name = "movie" value = "http://yourname.com/flvplayer.swf"/>
<Param name = "quality" value = "high"/>
<Param name = "allowFullScreen" value = "true"/>
<Embed src = "http://yourname.com/flvplayer.swf" allowfullscreen = "true" flashvars = "vcastr_file = yun_qi_img/logo.jpg" quality = "high" pluginspage = "http://www.macromedia.com/go/getflashplayer" type = "application/x-shockwave- flash "width =" 960 "height =" 540 "> </embed>
</Object>

Parameter settings

Vcastr_file Method 2: Pass the flv file address parameter of the video. Multiple uses | separated empty
Vcastr_title video title parameter, multiple use | separate, use blank with Method 2
Vcastr_xml method 3: Pass the flv file address parameter of the video. For the sample, see vcastr. xml.
IsAutoPlay automatic video playback parameter: 0 indicates that the video is not automatically played, and 1 indicates that the video is automatically played 0.
IsContinue video continuous playback parameter: 0 indicates non-continuous playback, 1 indicates continuous loop playback 1
IsRandom random video playback parameter: 0 indicates random video playback, and 1 indicates random video playback.
DefaultVolume default volume parameter: 0-100 value, set the default volume of the video to 100
BarPosition control bar position parameter: 0 indicates floating display on the video, 1 indicates displaying 0 below the video
IsShowBar control bar display parameters: 0 indicates no display; 1 indicates always display; 2 indicates displayed when the mouse is hovering; 3 indicates not displayed at the beginning; 2 indicates displayed after the mouse is hovering
The color of the BarColor control bar. The color ranges from 0 to 000033 in hexadecimal notation starting with 0x.
BarTransparent playback control bar transparency 60
GlowColor: the color of the key icon. The color ranges from 0x to hexadecimal 0x0.
IconColor: hover the mouse over time dizzy color. The color starts with 0x and the hexadecimal number indicates 0 xFFFFFF.
TextColor: specifies the text color of the player. The color ranges from 0x to hexadecimal notation 0 xFFFFFF.
LogoText can be used to add information such as your website name (in English).
LogoUrl allows you to read logo images from the outside, and adjust the logo size by yourself. The image format and swf format are supported to be empty.
After an EndSwf video is played, the swf file is read from the outside. You can add the relevant video information and video sharing information.
Before you start playing a BeginSwf video, you can read the swf file from the outside and add advertisements or website information.
IsShowTime display Time: 0 indicates no display time, 1 indicates display time 1
BufferTime buffer time, in seconds 2

Related Article

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.