Browse Source

bye 视频推流关闭

dev_trial
wenlele 3 years ago
parent
commit
848c14d9ab
  1. 6
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

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

@ -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()

Loading…
Cancel
Save