类型:开发

描述:
This commit is contained in:
2026-02-03 23:46:55 +08:00
parent b7499f12d1
commit 6fe84fe853
5 changed files with 7 additions and 6 deletions

View File

@@ -177,7 +177,7 @@
}
})
this.hls.on('play:failed', (err) => {
this.initializePlayer();
// this.initializePlayer();
})
}else{
this.hls = new Hls({

View File

@@ -143,7 +143,7 @@ const createPlayer = (cameraIndexCode,videoElement) => {
}
})
player.on('play:failed', (err) => {
createPlayer(cameraIndexCode,videoElement);
// createPlayer(cameraIndexCode,videoElement);
})
webrtcRefs.push(player)
}

View File

@@ -113,7 +113,7 @@ let isCollect = ref(0)
}
})
player.on('play:failed', (err) => {
createPlayer(cameraIndexCode,videoElement);
// createPlayer(cameraIndexCode,videoElement);
})
webrtcRefs.push(player)
}

View File

@@ -301,7 +301,8 @@
}
})
player.on('play:failed', (err) => {
createPlayer(cameraIndexCode,videoElement);
// console.log('播放失败:', err)
// createPlayer(cameraIndexCode,videoElement);
})
webrtcRefs.push(player)
}else{

View File

@@ -358,7 +358,7 @@
}
})
player.on('play:failed', (err) => {
createPlayer(cameraIndexCode,videoElement);
// createPlayer(cameraIndexCode,videoElement);
})
webrtcRefs.push(player)
}
@@ -454,7 +454,7 @@
}
})
hlsRef.on('play:failed', (err) => {
handleItemVideo(url, type, code, item);
// handleItemVideo(url, type, code, item);
})
} else {
hlsRef = new Hls({