diff --git a/apps/web-antd/src/views/sis/acAdmin/index.vue b/apps/web-antd/src/views/sis/acAdmin/index.vue index 135aae00..96d7d07c 100644 --- a/apps/web-antd/src/views/sis/acAdmin/index.vue +++ b/apps/web-antd/src/views/sis/acAdmin/index.vue @@ -180,7 +180,7 @@ function doPlayer(nodeData: any, index: number = 0) { if (mpegts.isSupported()) { streamProxy(nodeData, (res: AddStreamProxyResult) => { const host = window.location.host; - const url = `http://${host}/${res.app}/${res.streamId}.live.flv`; + const url = `ws://${host}/${res.app}/${res.streamId}.live.flv`; // 将url 绑定到 nodeData nodeData.url = url; closePlayer(index); diff --git a/apps/web-antd/src/views/sis/video/index.vue b/apps/web-antd/src/views/sis/video/index.vue index 950723b5..57206b85 100644 --- a/apps/web-antd/src/views/sis/video/index.vue +++ b/apps/web-antd/src/views/sis/video/index.vue @@ -308,7 +308,7 @@ function doPlayer(nodeData: any, index: number = 0) { if (mpegts.isSupported()) { streamProxy(nodeData, (res: AddStreamProxyResult) => { const host = window.location.host; - const url = `http://${host}/${res.app}/${res.streamId}.live.flv`; + const url = `ws://${host}/${res.app}/${res.streamId}.live.flv`; // 将url 绑定到 nodeData nodeData.url = url; closePlayer(index);