自动切歌

master
cp 2021-11-23 16:45:28 +08:00
parent 6870c82548
commit 92fb3e72ad
1 changed files with 10 additions and 3 deletions

View File

@ -21,7 +21,7 @@ var speed = 1;
var upTimer = null,downTimer = null,leftTimer = null,rightTimer = null;
var suiDanTimer = null;
var startIndex = 0;
// 集体舞
// 集体舞ji
function allDancing(dangcing){
if(dangcing!=''){
// clearInterval(upTimer);
@ -204,9 +204,16 @@ $(function(){
})
},4000)
// 自动切歌
setInterval(()=>{
var audio=document.getElementById('music');
if(audio){
audio.loop = false;
audio.addEventListener('ended', function () {
changeMusic()
},1000 * 60 * 2)
}, false);
}
// setInterval(()=>{
// changeMusic()
// },1000 * 60 * 2)
// setTimeout(()=>{
// console.log('开始集体舞');
// allDancing();