We recommend the beautiful flash web MP3 music player,
Source: PHP development learning portal
Address: http://www.phpthinking.com/archives/491
When creating a webpage, if you want to insert mp3 music into the webpage to increase the interaction of the webpage and improve user experience, it is necessary for the webpage music player, in general, there are a few unfriendly aspects for playing background music.
1. Play the video when the webpage is loaded. the user cannot pause or stop playing the video.
2. Generally, browsers have poor compatibility and are rarely applicable to all browsers.
Therefore, a flash-based webpage music player is necessary.
He has the following advantages:
1. Good browser compatibility. Currently, mainstream browsers support flash.
2. You can pause, stop, or set automatic playback through parameters.
3. Beautiful styles. Elegant and generous
First, let's take a picture of the player.
Here is a demonstration:
There are also many styles. For details, go to the DEMO:
Http://www.linzl.com/demos/2012/dewplayer/
Webpage mp3 music player usage:
HTML:
<object type="application/x-shockwave-flash" data="dewplayer.swf?mp3=mp3/test1.mp3" width="200" height="20" id="dewplayer"><param name="wmode" value="transparent" /><param name="movie" value="dewplayer.swf?mp3=mp3/test1.mp3" /></object>
Where:
dewplayer.swf
The path of the player.
mp3=mp3/test1.mp3
This MP3 = The following is the mp3 address.
It can be absolute or relative address.
Parameters:
Options
Default volume |
Volume = 100 |
Generally between 0 and |
Automatic playback |
Autostart = true |
Whether to play the video automatically after the webpage is loaded |
Loop playback |
Autoreplay = true |
Loop music |
Random playback |
Randomplay = true |
Multiple mp3 files can be played randomly. |
Display time |
Showtime = true |
Display playback time |
Disable mouse |
Nopointer = true |
Disable cursor to player |
Playlist |
Xml = playlist. xml |
Load the XML playlist (XSPF format) player to load multiple files |
Gradient |
Fading = 3 |
A sound track between non-gaps (seconds), and the next player can support gradient |
How to Use the player parameters:
http://www.linzl.com/demos/2012/dewplayer/mp3/test1.mp3&autostart=1&showtime=1&nopointer=1&volume=50
The full version is:
<object type="application/x-shockwave-flash" data="http://www.linzl.com/demos/2012/dewplayer/dewplayer.swf" width="200" height="20" 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