bug fixed

This commit is contained in:
2022-04-29 01:15:46 +08:00
parent 479990d58c
commit d4a6adf857

View File

@@ -124,8 +124,14 @@ function playnext(){
// 检测是否播放完毕
function checkplay(){
if(document.getElementById("Player").ended){
playnext();
// 为了防止播放列表结束以后一直调用playnext产生过多的alart所以需要检测播放列表是否为空
if(!list.isEmpty()){
if(document.getElementById("Player").ended){
// 播放完毕后自动播放下一首
playnext();
}
}else{
//clearInterval(checkplay);
}
}