开发者

HTML add songs to playlist and play songs on browser

I've basic HTML programming knowledge, I'm working in a web-based environment for system administration. I want to make a html or any other code to play songs on the browser one after the other(something like having an option to add to playlist) on ubuntu. I copied the songs to apache root(/va开发者_Go百科r/www/songs) and it's playing which ever song is selected(http://localhost/songs). I'm thinking if it is possible to list all the songs and to create a playlist with html so that I can add songs to be played next on the browser with some apache virtualhosting.

Anybody has any script to list songs directory and play songs continuously one after the other adding songs to playlist on the browser?.

Thank you very much!


You should take a look at the open-source library called Opentape: http://opentape.fm/

It allows you to do exactly what you're trying to do.


You may use this:

<embed src="http://www.example.com/example/playlist.m3u"  autostart="true"  type="audio/mpeg" loop="true"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜