|
@ -77,7 +77,7 @@ const VideoPlay = ({ dispatch, actions, |
|
|
playUrlHd: `ezopen://open.ys7.com/${videoObj.serialNo}/${videoObj.channelNo || '1'}.hd.live`, |
|
|
playUrlHd: `ezopen://open.ys7.com/${videoObj.serialNo}/${videoObj.channelNo || '1'}.hd.live`, |
|
|
replayUrl: `ezopen://open.ys7.com/${videoObj.serialNo}/${videoObj.channelNo || '1'}.hd.local.rec`, |
|
|
replayUrl: `ezopen://open.ys7.com/${videoObj.serialNo}/${videoObj.channelNo || '1'}.hd.local.rec`, |
|
|
} |
|
|
} |
|
|
}else { |
|
|
} else { |
|
|
videoObj = { |
|
|
videoObj = { |
|
|
...videoObj, |
|
|
...videoObj, |
|
|
playUrlSd: `${iotVideoPlayServer}/jessica/${videoObj.topSerialNo}/${videoObj.serialNo}`, |
|
|
playUrlSd: `${iotVideoPlayServer}/jessica/${videoObj.topSerialNo}/${videoObj.serialNo}`, |
|
@ -306,6 +306,10 @@ const VideoPlay = ({ dispatch, actions, |
|
|
return () => { |
|
|
return () => { |
|
|
if (jessibucas.current) { |
|
|
if (jessibucas.current) { |
|
|
jessibucas.current.destroy() |
|
|
jessibucas.current.destroy() |
|
|
|
|
|
// console.log(1111111111111111111111); |
|
|
|
|
|
const bye = request.get(`${iotVideoServer}/api/gb28181/bye?id=${videoObj.topSerialNo}&channel=${videoObj.serialNo}`).then(v=>{ |
|
|
|
|
|
// console.log(1231313123); |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
if (yingshiPlayer.current && videoObj.type == 'yingshi') { |
|
|
if (yingshiPlayer.current && videoObj.type == 'yingshi') { |
|
|
yingshiPlayer.current.stop() |
|
|
yingshiPlayer.current.stop() |
|
|