file name: download alist_player_yao.swf
you can play audio files in MP3 and FLV formats. FLV can be video files, but only sound is needed during playback. Results:
The functions of the buttons are as follows: (the last one), (playing/pausing), and (the next one)
========================================================== =====
When called on a webpage, two parameters are available:
1. autostart
Note: This option controls whether to enable automatic playback.
To enable the page for automatic playback: autostart = true
Otherwise, autostart or autostart = false is omitted.
2. alist
Specifies the address of the music list.
For example: alist = http://www.cnblogs.com/files/yao/list.htm
The music list is an XML document in the following format:
<? XML version = "1.0" encoding = "UTF-8" ?>
< Audiolist >
< Songurl > Http://www.micstar.com/upload/upmusic/2006/3/23/200644164436.mp3 </ Songurl >
< Songurl > Http: // 61.172.177.226/wxxx/soft/uploadsoft/200604/20060414085618627 bytes </ Songurl >
< Songurl > Http: // 202.39.32.42/latest </ Songurl >
</ Audiolist >
Songurl nodes can be added without restriction.
(Note: Because the blog garden cannot upload a document with the XML extension, I changed the XML extension to htm, but it does not affect the use .)
Complete HTML call for the flash MP3 playerCode:
< Object Classid = 'Clsid: d27cdb6e-ae6d-11cf-96b8-444553540000' Codebase = 'HTTP: // fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab?version=8, 0, 0' Width = '89' Height = '28' ID = 'Alist _ player' >
< Param Name = 'Wmode' Value = 'Transparent' />
<ParamName= 'Flashvars'Value= 'Autostart = false & alist = http://files.cnblogs.com/yao/list.htm'/>
< Param Name = 'Movie' Value = 'HTTP: // files.cnblogs.com/yao/alist_player_yao.swf' />
< Param Name = 'Quality' Value = 'High' />
< Embed SRC = 'HTTP: // files.cnblogs.com/yao/alist_player_yao.swf'
Flashvars
= 'Autostart = false & alist = http://files.cnblogs.com/yao/list.htm' Quality = 'High' Width = '89' Height = '28' Name = 'Alist _ player' Type = 'Application/X-Shockwave-flash' Pluginspage = 'HTTP: // www.macromedia.com/go/getflashplayer' />
</ Object >
As we all know, it is to draw attention to the parameter transmission method.
Source code download (64 K ).