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