|
|
@ -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() |
|
|
|
} |
|
|
|
} |
|
|
|
}, []) |
|
|
|
|
|
|
|