我实际上能够在不重新加载的情况下在整个页面中连续播放音乐,使用帧(我知道连续播放音乐不是一个好主意,但客户真的要求它,所以我别无选择).这是我用于播放音乐的框架:
<body>
<div id="player">
<audio id="audio" controls="controls" autoplay="autoplay" loop="loop" style="width:150px;">
<source src="martnalia05namoracomigo.ogg" type="audio/ogg" />
<source src="martnalia05namoracomigo.mp3" type="audio/mp3" />
<embed src="martnalia05namoracomigo.mp3" hidden="true" loop="TRUE" autostart="TRUE"></embed>
</audio>
</div>
</body>
Run Code Online (Sandbox Code Playgroud)
我插入此音乐只是为了测试,我想知道是否可以制作一个播放列表,是否可以通知当前播放的音乐中有一个链接和一个跳过音乐的按钮,例:
[player]
| button previous | button to play/pause | button next
| name of the music (link to the page of the Album) |
[end of player]
Run Code Online (Sandbox Code Playgroud)
有什么建议?