Sorry. 请您稍等,正在加载/Loading...

Flash Mp3播放器

Sein为了寻找一个合适的播放器而大费周折,鱼记得以前也看过一款超强的播放器,它就叫FLASH MP3 PLAYER,支持回放、RSS/XSPF播放列表、多种样式、artworks、颜色大小自定义以及一个Js API。更多功能请查看官方的Readme文件。

可以去Musiklab websiteChicago Music PromotionsGeenStijl DumpPodnova Podcast,看一下示例。

如果喜欢,这是下载地址,我们用到的有三个文件,mp3player.swf、Playlist.xml、Config.xml。添加代码:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="200" id="mp3player"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="http://www.server.com/mp3player.swf" />
<param name="flashvars" value="config=http://www.server.com/config.xml&file=http://www.

server.com/playlist.xml" />
<embed src="http://www.server.com/mp3player.swf" width="300" height="200" name="mp3player"
flashvars="config=http://www.server.com/config.xml&file=http://

www.server.com/playlist.xml"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

它的自定义是通过Config.xml文件来实现的,下面是内容注释。

<mp3config>

<!-- 自动播放和无序播放(true或者false) -->
<autostart>false</autostart>
<shuffle>true</shuffle>

<!-- 选择重复播放模式(none, one, all or list (plays the entire playlist once)) -->
<repeat>list</repeat>
<!-- 音量(0 to 100) -->
<volume>80</volume>
<!-- 是否显示display 和 playlist (true or false) -->
<showdisplay>true</showdisplay>
<showplaylist>true</showplaylist>
<!-- choose here in what frame you want links to be opened (_blank, _self, _top or a framename) -->
<linktarget>_top</linktarget>
<!-- 颜色(十六进制值, from 0x000000 to 0xffffff) -->
<backcolor>0xffffff</backcolor>
<frontcolor>0x333333</frontcolor>
<lightcolor>0x000000</lightcolor>

<!-- 你可以用一张Jpg文件作为播放器的背景,作为它的皮肤 (url to the jpg file) -->
<jpgfile></jpgfile>
<!-- (for webmasters) URL of a script, called on start and completion of a song -->
<!-- the following vars are sent with POST: playlist, title, file, identifier, action ('start' or 'complete') -->
<callback></callback>
</mp3config>


Power by WOW派™

0 评论:

相关文章