简体   繁体   English

如何让用户使用HTML5导航和播放播放列表 <audio> 标签?

[英]How can I let a user navigate and play a playlist using the HTML5 <audio> tag?

I want to link a playlist with the <audio> element in HTML5, so that: 我想将播放列表与HTML5中的<audio>元素链接,以便:

  • When one song in the list ends, the next song starts automatically 当列表中的一首歌结束时,下一首歌会自动开始
  • The user can switch to the next or previous song in the playlist 用户可以切换到播放列表中的下一首或上一首歌曲

How can this be achieved through HTML5, JavaScript etc.? 如何通过HTML5,JavaScript等实现此目的? I'm using ASP.NET at the backend. 我在后端使用ASP.NET。

Also, can I give user the liberty to play any song from his/her playlist alongside the audio player? 另外,我可以让用户自由播放音频播放器中他/她的播放列表中的任何歌曲吗? My friend told me that it can be achieved by tweaking its DOM (Document Object Model). 我的朋友告诉我,可以通过调整其DOM(文档对象模型)来实现。 Please help how can it be achieved? 请帮助如何实现?

How about jQuery HTML5 Audio Player? jQuery HTML5音频播放器怎么样? http://www.jplayer.org/latest/demo-02/ http://www.jplayer.org/latest/demo-02/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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