From 6fe84fe853d15cc80f698f6aafb92498f48f4faa Mon Sep 17 00:00:00 2001 From: lixuefeng <1126141216@qq.com> Date: Tue, 3 Feb 2026 23:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=9A=E5=BC=80=E5=8F=91?= =?UTF-8?q?=20=E6=8F=8F=E8=BF=B0=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HlsPlayer/index.vue | 2 +- src/layout/components/CoreVideo/allList.vue | 2 +- src/layout/components/CoreVideo/index.vue | 2 +- src/views/collect/components/video-box.vue | 3 ++- src/views/hotel/components/video-box.vue | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) 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({