Audio player plays multiple files

Source: Internet
Author: User

Audioplayer is a playback plug-in for WordPress, which is easy to use. I found some information,

It can basically be used up, but if you want it to play multiple files, it is not found on the Internet

Method. It took me one afternoon to read Js for half a day and find a solution.

If you want to customize and use it in your own system, the general method is to use JS, but compare
Complex and hard to understand. By trying, a simple method is implemented in demo-single.
To directly embed flash. The key lies in parameter settings and single file playback problems.
Not big. By analyzing JS, you can find a method to play multiple files by using commas (,).
Open multiple playback files. For more information, see falashvars settings.
Other attributes are relatively simple.

My demo:

Http://files.cnblogs.com/jetz/audioplayer%e5%8f%af%e7%94%a8%e7%89%88%e6%9c%ac.rar

Refer:

Http://files.cnblogs.com/jetz/audioplayer%e5%8f%af%e7%94%a8%e7%89%88%e6%9c%ac.rar

Http://anotheridea.ycool.com/post.2757521.html

Http://www.mapleflying.com/archives/201011211590.html

Continue (2010.2.26)

I want to apply audioplayer to my own webpage. The original webpage uses Windows Media Player and some JSCodeAnd Ajax control play and fetch

Status to load new songs. The result is stuck in the case of this playback mode. First, you cannot dynamically set flashvars with Js. After searching for half a day, you can find a way to set it.

Add an ID to the corresponding Param, get it with getelementbyid, and set it again:

VaR plist = Document. getelementbyid ("plist ");

Plist. value = "playerid=1,2&soundfile=1.mp3,2.mp3 & titles = Song 1, huoyuanjia & artists = ah, oh ";

Unfortunately, although the setting is successful, Flash does not respond because it needs to be reloaded. Later, we put the object in a div using the method recommended on the Internet, and write the innerhtml of the Div every time.

VaR pp = Document. getelementbyid ("PP ");

PP. innerhtml = " "width = 490 classid = CLSID: d27CDB6E-AE6D-11cf-96B8-444553540000 name = audioplayer_1> "+
" " +
"" +
" "+
" ";

Then, the problem of automatic playback failure occurs. The solution is to add autostart = yes.

Reference: http://www.discuz.net/forum.php? MoD = viewthread & tid = 372008.

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.