Publish a flash MP3 player available on the blog (FLV format is also supported)

Source: Internet
Author: User

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 ).

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.