Article Source: PHP Development Learning Portal
Address: http://www.phpthinking.com/archives/491
In the production of Web pages. If you want to insert MP3 music into the Web page to add interactivity and enhance user experience, this time the Web music player is very necessary. In general, it is assumed that there are several very unfriendly places to play with background music.
1. The user cannot pause when the page is loaded and played. Stop playing
2. General browser compatibility is poor. Very little can be common to all browsers
Therefore, a flash-based web music player is very necessary.
He has some of the following strengths
1. Good browser compatibility. Most mainstream browsers now support Flash
2. Ability to pause. Stop playing, also can set their own active play by the number of parameters
3. Beautiful style.
Beautiful and generous
Let's start with a picture of the player.
To a demonstration:
And of course there are very many styles. For details, please go to Demo:
http://www.linzl.com/demos/2012/dewplayer/
Web MP3 music Player usage:
Html:
<object type= "Application/x-shockwave-flash" Data= "dewplayer.swf?Mp3=mp3/test1.mp3 "width=" "height=" "id=" Dewplayer "><param name=" wmode "value=" Transparent "/>< param name= "movie" Value= "dewplayer.swf?
Mp3=mp3/test1.mp3 "/></object>
Of
dewplayer.swf
is the path of the player, be sure to
Mp3=mp3/test1.mp3
This is the MP3 address behind this mp3=.
can be absolute. can also be a relative address
Number of references:
Options
Default Volume |
volume=100 |
Usually between 0-100 |
Play your own initiative |
Autostart=true |
Do you want to play it on your own when the page is finished loading? |
Loop playback |
Autoreplay=true |
Play Music in a loop |
Random Play |
Randomplay=true |
Multiple MP3 can be played randomly |
Show time |
Showtime=true |
Show Playback time |
Disable Mouse |
Nopointer=true |
Disable cursor to player |
playlist |
xml= Playlist.xml |
|
Gradient |
fading=3 |
No gap (seconds) between one track, and the next player, capable of supporting gradients |
Usage of player parameters:
http://www.linzl.com/demos/2012/dewplayer/mp3/test1.mp3&autostart=1&showtime=1& Nopointer=1&volume=50
Full version namely:
<object type=" Application/x-shockwave-flash "Data=" http://www.linzl.com/ demos/2012/dewplayer/dewplayer.swf "width=" "height=" "id=" Dewplayer "name=" Dewplayer "> <param name=" Wmode "value=" Transparent "/><param name=" movie "Value=" http://www.linzl.com/demos/2012/dewplayer/ dewplayer.swf "/> <param name=" flashvars "value=" mp3=http://demo.linzl.com/demos/2012/dewplayer/mp3/ Test1.mp3&autostart=1&showtime=1&nopointer=1&volume=50 "/> </object>
Flash Web MP3 Player:
http://www.phpthinking.com/archives/491
Recommended beautiful Flash web MP3 music player