diff --git a/src/components/HlsPlayer/index.vue b/src/components/HlsPlayer/index.vue index 9adc643..210f04e 100644 --- a/src/components/HlsPlayer/index.vue +++ b/src/components/HlsPlayer/index.vue @@ -177,7 +177,7 @@ } }) this.hls.on('play:failed', (err) => { - this.initializePlayer(); + // this.initializePlayer(); }) }else{ this.hls = new Hls({ diff --git a/src/layout/components/CoreVideo/allList.vue b/src/layout/components/CoreVideo/allList.vue index 497e1ec..2ae7e51 100644 --- a/src/layout/components/CoreVideo/allList.vue +++ b/src/layout/components/CoreVideo/allList.vue @@ -143,7 +143,7 @@ const createPlayer = (cameraIndexCode,videoElement) => { } }) player.on('play:failed', (err) => { - createPlayer(cameraIndexCode,videoElement); + // createPlayer(cameraIndexCode,videoElement); }) webrtcRefs.push(player) } diff --git a/src/layout/components/CoreVideo/index.vue b/src/layout/components/CoreVideo/index.vue index 1dc63a7..4f29f56 100644 --- a/src/layout/components/CoreVideo/index.vue +++ b/src/layout/components/CoreVideo/index.vue @@ -113,7 +113,7 @@ let isCollect = ref(0) } }) player.on('play:failed', (err) => { - createPlayer(cameraIndexCode,videoElement); + // createPlayer(cameraIndexCode,videoElement); }) webrtcRefs.push(player) } diff --git a/src/views/collect/components/video-box.vue b/src/views/collect/components/video-box.vue index 4f6d670..9a6bb5c 100644 --- a/src/views/collect/components/video-box.vue +++ b/src/views/collect/components/video-box.vue @@ -301,7 +301,8 @@ } }) player.on('play:failed', (err) => { - createPlayer(cameraIndexCode,videoElement); + // console.log('播放失败:', err) + // createPlayer(cameraIndexCode,videoElement); }) webrtcRefs.push(player) }else{ diff --git a/src/views/hotel/components/video-box.vue b/src/views/hotel/components/video-box.vue index 3701d76..272ab2d 100644 --- a/src/views/hotel/components/video-box.vue +++ b/src/views/hotel/components/video-box.vue @@ -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({