Javascript-controlled flash FLV video player-open source outside China

Source: Internet
Author: User
Making a simple flvplayer is very simple, and it is far from powerful. After Google, we found an open-source video player named pai_flv_player, which can also be used as an MP3 player.
Javascrui can control the player to play/pause, stop, increase the volume, decrease the volume, forward, and backward for n seconds, and so on. They are encapsulated and can be called easily.
Results can be seen on the author's website: http://www.jeroenwijering.com/extras/javascript.html
Online customization: http://www.jeroenwijering.com/extras/wizard.html is also available
The code for adding a player is as follows: <Div id = "myplayer" style = "float: Left"> <a href = "http://www.macromedia.com/go/getflashplayer">
Get the Flash Player </a> to see this player. </div>
<SCRIPT type = "text/JavaScript">
// Player, player ID, width, height,
VaR S1 = new swfobject ("mediaplayer.swf", "player_id", "300", "300", "7 ");
S1.addparam ("allowfullscreen", "true"); // whether full screen playback is allowed
// S1.addvariable ("file", "video. FLV"); // play a single file
S1.addvariable ("file", "playlist. xml"); // list playback
S1.addvariable ("image", "preview.jpg"); // background image
S1.addvariable ("displayheight", "200"); // The height of the playback area.
S1.addvariable ("backcolor", "0x000000 ");
S1.addvariable ("frontcolor", "0 xcccccc ");
S1.addvariable ("lightcolor", "0x557722 ");
S1.addvariable ("enablejs", "true"); // whether JavaScript scripts are allowed to control flash
S1.addvariable ("javascriptid", "javascript_id"); // control the script javascriptid
S1.write ("myplayer"); // write the player to myplayer
</SCRIPT>

I sorted out the notes and downloaded the attachments.
You need to check in IIS and add the. FLV suffix Mine Type Under 2003

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.