From d6c3048a9f22ff149cf5b26f7b442f529408153b Mon Sep 17 00:00:00 2001 From: lxj <15683799673@163.com> Date: Fri, 29 Aug 2025 11:34:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=B5=81=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=86=85=E5=A4=96=E7=BD=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/screen/monitor/map/Map.vue | 12 +++++------- apps/web-antd/src/views/sis/acAdmin/index.vue | 4 ++-- apps/web-antd/src/views/sis/video/index.vue | 14 +++++--------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/apps/web-antd/src/views/screen/monitor/map/Map.vue b/apps/web-antd/src/views/screen/monitor/map/Map.vue index f56abc0f..347dac12 100644 --- a/apps/web-antd/src/views/screen/monitor/map/Map.vue +++ b/apps/web-antd/src/views/screen/monitor/map/Map.vue @@ -11,10 +11,7 @@ import { deviceManageList } from '#/api/sis/deviceManage/index.js'; import { deviceChannelList } from '#/api/sis/deviceChannel/index.js'; import mpegts from 'mpegts.js'; import { message } from 'ant-design-vue'; -import { - addFFmpegMediaStreamProxy, - addMediaStreamProxy, -} from '#/api/sis/stream/index.js'; +import { addMediaStreamProxy } from '#/api/sis/stream/index.js'; import { checkHEVCSupport } from '#/utils/video.js'; // 地图全局对象 @@ -114,7 +111,8 @@ function loadCameraData() { function doPlayer(nodeData) { if (mpegts.isSupported()) { streamProxy(nodeData, (res) => { - const url = res.flv; + const host = window.location.host; + const url = `http://${host}/${res.app}/${res.streamId}.live.flv`; // 将url 绑定到 nodeData nodeData.url = url; closeVideo(currentPlayer); @@ -152,8 +150,8 @@ function streamProxy(params, cb) { if (isSupportH265) { addMediaStreamProxy(params).then((res) => cb(res)); } else { - // addMediaStreamProxy(params).then((res) => cb(res)); - addFFmpegMediaStreamProxy(params).then((res) => cb(res)); + addMediaStreamProxy(params).then((res) => cb(res)); + // addFFmpegMediaStreamProxy(params).then((res) => cb(res)); } } diff --git a/apps/web-antd/src/views/sis/acAdmin/index.vue b/apps/web-antd/src/views/sis/acAdmin/index.vue index 589ec097..f8da3d60 100644 --- a/apps/web-antd/src/views/sis/acAdmin/index.vue +++ b/apps/web-antd/src/views/sis/acAdmin/index.vue @@ -1,7 +1,7 @@