From e21e9999c7b184308f7633b55612c53ea6a13d15 Mon Sep 17 00:00:00 2001 From: lixuefeng <1126141216@qq.com> Date: Tue, 3 Feb 2026 23:50:29 +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/views/collect/components/video-box.vue | 2 +- src/views/hotel/components/video-box.vue | 4 ++-- src/views/monitor/components/box-2.vue | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/HlsPlayer/index.vue b/src/components/HlsPlayer/index.vue index fb49f28..ecb578f 100644 --- a/src/components/HlsPlayer/index.vue +++ b/src/components/HlsPlayer/index.vue @@ -177,7 +177,7 @@ export default { } }) 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 a04df88..b4a7b8e 100644 --- a/src/layout/components/CoreVideo/allList.vue +++ b/src/layout/components/CoreVideo/allList.vue @@ -139,7 +139,7 @@ } }) 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 6a44e06..0d380f6 100644 --- a/src/views/collect/components/video-box.vue +++ b/src/views/collect/components/video-box.vue @@ -315,7 +315,7 @@ const createPlayer = (cameraIndexCode,videoElement) => { } }) player.on('play:failed', (err) => { - createPlayer(cameraIndexCode,videoElement); + // createPlayer(cameraIndexCode,videoElement); }) webrtcRefs.push(player) } diff --git a/src/views/hotel/components/video-box.vue b/src/views/hotel/components/video-box.vue index e1ce01a..4bb758a 100644 --- a/src/views/hotel/components/video-box.vue +++ b/src/views/hotel/components/video-box.vue @@ -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({ diff --git a/src/views/monitor/components/box-2.vue b/src/views/monitor/components/box-2.vue index 410a8d1..438541f 100644 --- a/src/views/monitor/components/box-2.vue +++ b/src/views/monitor/components/box-2.vue @@ -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({