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