简体   繁体   中英

how to play mp3 in a web page

I'm going to play MP3 in my ASP.NET web app (VS 2008), I want user to have a nice GUI for play/pause/stop and selecting different musics. Is there any way to start playing music automatically at site start up? Of course music should not be restarted after a new page is being loaded, is there any way I can control music via server side code?

thanks, I've tested many players but I think I need more sources

Music media can be played using HTML5 or Flash. These are front-end technologies. You can, of course, 'fetch' urls and files using back-end asp.net code.

There are a few javascript libraries out there that will determine if a user has an HTML5 browser and if not, use Flash as a backup.

One of them I like to use is called jPlayer, for jQuery.

http://jplayer.org/

您可以使用服务器控件,也可以检查这些资源

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM