From de8e129035c0cb4447159a2fc5852e4fbcc3dddb Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 26 Jul 2023 09:28:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=BB=E5=BC=80=E4=B8=BB=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=97=B6=E5=80=99=E9=94=80=E6=AF=81=E6=92=AD=E6=94=BE=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/src/sections/console/containers/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/console/client/src/sections/console/containers/index.js b/console/client/src/sections/console/containers/index.js index a4e9b6f..9e797b5 100644 --- a/console/client/src/sections/console/containers/index.js +++ b/console/client/src/sections/console/containers/index.js @@ -63,8 +63,8 @@ function Index (props) { const [videoVis, setVideoVis] = useState(false) const [isOutModalOpen, setIsOutModalOpen] = useState(false) const [video, setVideo] = useState({}) - const flvPlayer = useRef() - const jessibucas = useRef() + const flvPlayer = useRef(null) + const jessibucas = useRef(null) const draw = (type, params = {}) => { if (type == 'xz') { @@ -601,6 +601,9 @@ function Index (props) { forceNoOffscreen: false, controlAutoHide: true, isNotMute: false, + + // useMSE:true, + // autoWasm:true }); jessibucas.current = jessibuca jessibuca.play( @@ -676,6 +679,9 @@ function Index (props) { window.clearInterval(lidarLiveWsInterval); lidarLiveWs.close();//关闭连接 } + if(jessibucas.current){ + jessibucas.current.destroy() + } } }, [])