|
|
@ -56,18 +56,19 @@ const VideoPlay = ({ dispatch, actions, |
|
|
|
// videoObj = { |
|
|
|
// type: 'cascade', |
|
|
|
// audio: false, |
|
|
|
// serialNo: '34020000001310000003', // 设备序列号 必须 |
|
|
|
// topSerialNo: '34020000001110000079', // 设备顶级序列号 必须 |
|
|
|
// playUrlSd: 'wss://221.230.55.27:8082/jessica/34020000001110000079/34020000001310000003.flv', // 必须 |
|
|
|
// serialNo: '34020000001310000001', // 设备序列号 必须 |
|
|
|
// topSerialNo: '34020000001320000001', // 设备顶级序列号 必须 |
|
|
|
// playUrlSd: 'wss://221.230.55.27:8082/jessica/34020000001320000001/34020000001310000001', // 必须 |
|
|
|
// // playUrlHd: 'ezopen://open.ys7.com/G75922040/1.hd.live', |
|
|
|
// // replayUrl: 'ezopen://open.ys7.com/G75922040/1.rec', |
|
|
|
// }, |
|
|
|
|
|
|
|
// |
|
|
|
iotVideoServer, |
|
|
|
iotVideoPlayServer, |
|
|
|
local, //是否本地调用视频 |
|
|
|
}) => { |
|
|
|
// console.log('1754',videoObj); |
|
|
|
console.log('1754',videoObj); |
|
|
|
if (videoObj.type == 'yingshi') { |
|
|
|
videoObj = { |
|
|
|
...videoObj, |
|
|
@ -75,6 +76,11 @@ const VideoPlay = ({ dispatch, actions, |
|
|
|
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`, |
|
|
|
} |
|
|
|
}else { |
|
|
|
videoObj = { |
|
|
|
...videoObj, |
|
|
|
playUrlSd: `${iotVideoPlayServer}/jessica/${videoObj.topSerialNo}/${videoObj.serialNo}`, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const { openness } = actions; |
|
|
@ -586,6 +592,7 @@ function mapStateToProps (state) { |
|
|
|
return { |
|
|
|
user: auth.user, |
|
|
|
iotVideoServer: global.iotVideoServer, |
|
|
|
iotVideoPlayServer: global.iotVideoPlayServer, |
|
|
|
actions: global.actions, |
|
|
|
}; |
|
|
|
} |
|
|
|