From 8624c895b1e6080b9af42f82fd6a4dc26cf98b01 Mon Sep 17 00:00:00 2001 From: EdgeYu <770177948@qq.com> Date: Mon, 22 Dec 2025 11:50:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=81=9C=E8=BD=A6=E5=9C=BA=E6=80=BB?= =?UTF-8?q?=E6=8E=A7=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0=E5=8D=8E=E5=A4=8F?= =?UTF-8?q?=E7=9B=B8=E6=9C=BA=20flv=20websocket=20=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../parkingAreaTotalControlVideo.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/iot-web/public/components/car/parkingAreaTotalControlVideo/parkingAreaTotalControlVideo.js b/iot-web/public/components/car/parkingAreaTotalControlVideo/parkingAreaTotalControlVideo.js index fd5b7603..8b2e713d 100644 --- a/iot-web/public/components/car/parkingAreaTotalControlVideo/parkingAreaTotalControlVideo.js +++ b/iot-web/public/components/car/parkingAreaTotalControlVideo/parkingAreaTotalControlVideo.js @@ -1,6 +1,7 @@ /** 入驻小区 **/ +import HuaXiaVideo from "api/3d/HuaXiaVideo.js"; (function (vc) { vc.extends({ data: { @@ -64,6 +65,18 @@ } }) }, + _showHuaXiaCameraVideo: function (wsUrl, _div) { + let jMap = $that.parkingAreaTotalControlVideoInfo.jessibuca; + let huaXiaVideo = jMap[_div]; + if (huaXiaVideo) { + huaXiaVideo.destroy(); + } + + let imgId = _div.replace('receiverDiv', 'receiver'); + let _huaXiaVideo = new HuaXiaVideo(wsUrl, imgId); + _huaXiaVideo.playVideo(); + jMap[_div] = _huaXiaVideo; + }, _showCarInoutMachineInoutInfo: function (_data) { if (_data.action != 'FEE_INFO') { return; @@ -127,6 +140,14 @@ wsUrl = _machine.machineIp; + let _hmId = _machine.hmId; + + if (_hmId == "24") { + wsUrl = "ws://" + wsUrl+":9999"; + $that._showHuaXiaCameraVideo(wsUrl, "receiverDiv" + _machine.machineId); + return; + } + wsUrl = wsUrl.replace(':8131', ':9080'); let _protocol = window.location.protocol; -- Gitee