Browse Source

flv bye

dev_trial
巴林闲侠 2 years ago
parent
commit
4c392b9475
  1. 8
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

8
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

@ -313,6 +313,11 @@ const VideoPlay = ({ dispatch, actions,
return () => { return () => {
if (jessibucas.current) { if (jessibucas.current) {
jessibucas.current.destroy() jessibucas.current.destroy()
}
if (flvPlayer && flvPlayer.current) {
flvPlayer.current.destroy();
}
if (flvPlayer.current || jessibucas.current) {
const bye = request.get(`${iotVideoServer}/api/gb28181/bye?id=${videoObj.topSerialNo}&channel=${videoObj.serialNo}`).then(v => { const bye = request.get(`${iotVideoServer}/api/gb28181/bye?id=${videoObj.topSerialNo}&channel=${videoObj.serialNo}`).then(v => {
}) })
@ -320,9 +325,6 @@ const VideoPlay = ({ dispatch, actions,
if (yingshiPlayer.current && videoObj.type == 'yingshi') { if (yingshiPlayer.current && videoObj.type == 'yingshi') {
yingshiPlayer.current.stop() yingshiPlayer.current.stop()
} }
if (flvPlayer && flvPlayer.current) {
flvPlayer.current.destroy();
}
} }
}, []) }, [])

Loading…
Cancel
Save