类型:开发

描述:
This commit is contained in:
2026-02-03 23:50:29 +08:00
parent bc827e1cc8
commit e21e9999c7
5 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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