Vcastr3.swf free open-source Android flvplayer details

Source: Internet
Author: User

I. Features of The FLV Video Player open-source version of vcastr 3.0 flash:
Use as3.0 to re-write the player
The player size is reduced to about 20 + K.
You can configure the player using XML.
You can play multiple videos and have a list of movies.
You can set loop playback, automatic playback, whether to directly start downloading, and the color and mode of the control bar.
The control bar can accommodate ultra-small sizes.
You can use the plug-in to expand the player function.
You can use the plug-in to set the logo and Connection
You can use a plug-in to control the player using JavaScript.
You can use a plug-in to set the player's start or end image or flash (SWF) Beta.
This page must be tested on the server (http://www.aaa.com, or http: // localhost) and cannot be tested locally, because the test file http://vcastr.ruochi.com/video/happy_feet.flvis on the server end and cannot be tested on the slave.
Ii. DetailsSource codePlease refer to the original author's official webpage:

Http://www.ruochi.com/main/2008/03/19/vcastr-30/

Iii. Parameter Details
Passing Parameters Using XML

<Object type = "application/X-Shockwave-flash" Data = "vcastr3.swf" width = "650" Height = "500" id = "vcastr3">

<Param name = "movie" value = "vcastr3.swf"/>

<Param name = "allowfullscreen" value = "true"/>

<Param name = "flashvars" value = "xml = vcastr. xml"/>

</Object>

Parameter description

All parameters that can be set in XML and default values must be case sensitive.

<Vcastr>

<Channel>

<Item>

<Source> http://vcastr.ruochi.com/video/happy_feet.flv </source>

<Duration> </duration>

<Title> </title>

</Item>

<Item>

<Source> http://vcastr.ruochi.com/video/happy_feet.flv </source>

<Duration> </duration>

<Title> </title>

</Item>

<Item>

<Source> http://vcastr.ruochi.com/video/happy_feet.flv </source>

<Duration> </duration>

<Title> </title>

</Item>

</Channel>

<Config>

<Buffertime> 4 </buffertime>

& Lt; contralpanelalpha & gt; 0.75 & lt;/contralpanelalpha & gt;

<Controlpanelbgcolor> 0xff6600 </controlpanelbgcolor>

<Controlpanelbtncolor> 0 xffffff </controlpanelbtncolor>

<Controlpanelbtnglowcolor> 0xffff00 </controlpanelbtnglowcolor>

<Controlpanelmode> float </controlpanelmode>

<Defautvolume> 0.8 </defautvolume>

<Isautoplay> true </isautoplay>

<Isloadbegin> true </isloadbegin>

<Isshowabout> true </isshowabout>

<Scalemode> showall </scalemode>

</Config>

<Plugins>

<Logoplugin>

<URL> logoplugin.swf </URL>

<Logotext> ruochi.com </logotext>

<Logotextalpha> 0.75 </logotextalpha>

<Logotextfontsize> 24 </logotextfontsize>

<Logotextcolor> 0 xffffff </logotextcolor>

<Textmargin> 10 Auto auto 10 </textmargin>

<Logoclipurl> http://www.ruochigroup.com/images/logo.png </logoclipurl>

<Logoclipalpha> 1 </logoclipalpha>

<Clipmargin> 10 10 Auto </clipmargin>

</Logoplugin>

<Beginendimageplugin>

<URL> beginendimageplugin.swf </URL>

<Source> beginswftest.swf </source>

<Type> begin </type>

<Scaletype> exactfit </scaletype>

</Beginendimageplugin>

<Javascriptplugin>

<URL>JavascriptPlugin.swf </URL>

</Javascriptplugin>

</Plugins>

</Vcastr>

 

The following describes the XML tree structure with "." and describes the function of parameters.

Video Information

Channel. Item

Video information. You can set multiple videos.

Channel. itme. Source

FLV video address parameter. this parameter is a unique and mandatory parameter. Other parameters are optional. the player has default parameters.

Channel. itme. Duration

The total time of the corresponding video, in seconds. You can set it here because the time information of some films is lost during preparation.

Channel. itme. tilte

Corresponding film title

Channel. itme. Link

Corresponding link after the video is clicked

Player settings

Config. buffertime

Video time in the cache area, in seconds

Config. contralpanelalpha

The transparency of the control bar, ranging from 0 to 1.

Config. controlpanelbgcolor

Color of the control Bar background

Config. controlpanelbtncolor

Control button color

Config. controlpanelbtnglowcolor

Color of the control button halo

Config. defautvolume

Default sound size. The value ranges from 1 to 0.

Config. controlpanelmode

Display Mode of the control bar,

"Float": the default floating mode. If you move the mouse to remove the player, the player will be hidden.

"Normal": normal mode. It is displayed at any time in the lower part of the video.

"Bottom": lower mode, not floating on the film, but displayed below the film

"None": the player control bar is not displayed.

Config. isautoplay

Whether the video starts playing automatically. The default value is true.

Config. isloadbegin

Whether to read the video from the beginning. The default value is true.

Config. isrepeat

Whether to play the video cyclically. The silent value is false.

Config. isshowabout

Show information?

Config. scalemode

Video contraction mode:

"Showall": You can see all the films and maintain the ratio, which may be up or down or left or right.

"Exactfit": the size of the video to the player, which may be out of proportion.

"Noscale": the original size of the video, which is not scaled down.

"Noborder": the video is full of players. The video may be cropped to maintain the proportion.

Plug-in settings

Each subnode in plugins represents a plug-in. You can set multiple plug-ins.

Plugins. logoplugin. The parameter settings of the logo plug-in are displayed.

Plug-in address. You can use an absolute address or a relative address. The absolute address must start with http: //.

Plugins. logoplugin. logotext

Logo text. Note that only English and English Punctuation can be used. Chinese characters are not supported. If you want to add Chinese characters, make the Chinese characters PNG transparent images and set them using the Plugins. logoplugin. logoclipurl parameter.

Plugins. logoplugin. logotextalpha

Text transparency

Plugins. logoplugin. logotextlink

Text connection

Plugins. logoplugin. logotextfontsize

Text font size

Plugins. logoplugin. logotextcolor

Text color

Plugins. logoplugin. textmargin

The position of the text. The margin concept of CSS is used. Four values represent the distance between the top, right, and bottom of the left to the player. The four values are separated by spaces and do not need to be filled in with "Auto, for example, if the upper left alignment has a distance of 10 pixels, you can write "10 Auto 10", and the lower right alignment is "auto 10 Auto"

Plugins. logoplugin. logoclipurl

The URL of the image logo. You can use an absolute address or a relative address. The absolute address must start with http: //.

Plugins. logoplugin. logoclipalpha

Image logo transparency

Plugins. logoplugin. logocliplink

Image logo connection

Plugins. logoplugin. clipmargin

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.