We recommend the beautiful flash web MP3 music player,

Source: Internet
Author: User

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&amp;autostart=1&amp;showtime=1&amp;nopointer=1&amp;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&amp;autostart=1&amp;showtime=1&amp;nopointer=1&amp;volume=50" /> </object>

Flash web MP3 PLAYER:

Http://www.phpthinking.com/archives/491




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.