From 53f209d0d3172ff5fa0f1a37867ca6ae16e8efef Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Tue, 3 Mar 2026 20:20:17 +0800 Subject: [PATCH] 11 --- .../rtsp-plugin-video/lib/videoPlayer.js | 23 +- .../rtsp-plugin-video/video-plugin.vue | 503 ++++++++++++------ src/views/area/_components/bindCameraForm.vue | 3 +- .../area/_components/bindCameraTable.vue | 2 +- .../replay-video/replay-video-dialog.vue | 3 + src/views/device/deviceCameraReplay/index.vue | 165 ------ src/views/device/deviceGroupPlay/index.vue | 2 + vite.config.ts | 2 +- 8 files changed, 351 insertions(+), 352 deletions(-) delete mode 100644 src/views/device/deviceCameraReplay/index.vue diff --git a/src/components/rtsp-plugin-video/lib/videoPlayer.js b/src/components/rtsp-plugin-video/lib/videoPlayer.js index dba3562..75e9f85 100644 --- a/src/components/rtsp-plugin-video/lib/videoPlayer.js +++ b/src/components/rtsp-plugin-video/lib/videoPlayer.js @@ -628,20 +628,15 @@ } else { data.info.count = data.info.count || 0 data.info.count++ - clearTimeout(hwndInfo.notifyrealmonitorTimeout) - hwndInfo.notifyrealmonitorTimeout = setTimeout(() => { - if (Number(data.info.result) === 10704) { - // 拉流失败 - hwndInfo.realError && hwndInfo.realError(channelInfo, { code: 10704, message: '打开视频失败', i18nKey: 'video.player.play.fail' }) - } else if (Number(data.info.result) === -405) { - // 拉流超时 - hwndInfo.realError && hwndInfo.realError(channelInfo, { code: 10705, message: '打开视频超时', i18nKey: 'video.player.play.timeout' }) - } else { - hwndInfo.realError && hwndInfo.realError(channelInfo, { code: 204, message: '流异常断开,请重新连接~', i18nKey: 'video.player.stream.disconnect.reload' }) - } - // channelInfo && videoInfo.startReal([channelInfo], { isReOpen: true, count: data.info.count++ }) - clearTimeout(hwndInfo.notifyrealmonitorTimeout) - }, 2000) + if (Number(data.info.result) === 10704) { + // 拉流失败 + hwndInfo.realError && hwndInfo.realError(channelInfo, { code: 10704, message: '打开视频失败', i18nKey: 'video.player.play.fail' }) + } else if (Number(data.info.result) === -405) { + // 拉流超时 + hwndInfo.realError && hwndInfo.realError(channelInfo, { code: 10705, message: '打开视频超时', i18nKey: 'video.player.play.timeout' }) + } else { + hwndInfo.realError && hwndInfo.realError(channelInfo, { code: 204, message: '流异常断开,请重新连接~', i18nKey: 'video.player.stream.disconnect.reload' }) + } } videoInfo.setWindowDragEnable() break diff --git a/src/components/rtsp-plugin-video/video-plugin.vue b/src/components/rtsp-plugin-video/video-plugin.vue index dc3118b..e718e8e 100644 --- a/src/components/rtsp-plugin-video/video-plugin.vue +++ b/src/components/rtsp-plugin-video/video-plugin.vue @@ -1,5 +1,6 @@ @@ -488,6 +635,7 @@ defineExpose({ align-items: center; width: 100%; height: 100%; + position: relative; } .pane { @@ -499,4 +647,19 @@ defineExpose({ .pane.active { display: block; } + +.loading-mask { + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + background: rgba(255, 255, 255, 0.6); + color: #333; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + font-size: 14px; +} diff --git a/src/views/area/_components/bindCameraForm.vue b/src/views/area/_components/bindCameraForm.vue index 7ed436a..e4fb7fa 100644 --- a/src/views/area/_components/bindCameraForm.vue +++ b/src/views/area/_components/bindCameraForm.vue @@ -1,5 +1,6 @@