|
@ -56,6 +56,7 @@ const VideoPlay = ({ dispatch, actions, |
|
|
// videoObj = { |
|
|
// videoObj = { |
|
|
// type: 'cascade', |
|
|
// type: 'cascade', |
|
|
// audio: false, |
|
|
// audio: false, |
|
|
|
|
|
// cloudControl: true, |
|
|
// serialNo: '34020000001310000001', // 设备序列号 必须 |
|
|
// serialNo: '34020000001310000001', // 设备序列号 必须 |
|
|
// topSerialNo: '34020000001320000001', // 设备顶级序列号 必须 |
|
|
// topSerialNo: '34020000001320000001', // 设备顶级序列号 必须 |
|
|
// playUrlSd: 'wss://221.230.55.27:8082/jessica/34020000001320000001/34020000001310000001', // 必须 |
|
|
// playUrlSd: 'wss://221.230.55.27:8082/jessica/34020000001320000001/34020000001310000001', // 必须 |
|
@ -68,7 +69,7 @@ const VideoPlay = ({ dispatch, actions, |
|
|
iotVideoPlayServer, |
|
|
iotVideoPlayServer, |
|
|
local, //是否本地调用视频 |
|
|
local, //是否本地调用视频 |
|
|
}) => { |
|
|
}) => { |
|
|
console.log('1754',videoObj); |
|
|
// console.log('1754', videoObj); |
|
|
if (videoObj.type == 'yingshi') { |
|
|
if (videoObj.type == 'yingshi') { |
|
|
videoObj = { |
|
|
videoObj = { |
|
|
...videoObj, |
|
|
...videoObj, |
|
@ -382,7 +383,6 @@ const VideoPlay = ({ dispatch, actions, |
|
|
videoAfter = new moment(); //验证后时间 |
|
|
videoAfter = new moment(); //验证后时间 |
|
|
console.log(11111, res) |
|
|
console.log(11111, res) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.log(123151); |
|
|
console.log(123151); |
|
|
console.log(error.response); |
|
|
console.log(error.response); |
|
@ -449,7 +449,7 @@ const VideoPlay = ({ dispatch, actions, |
|
|
|
|
|
|
|
|
const pause = () => { |
|
|
const pause = () => { |
|
|
if (videoObj.type == 'yingshi' && player) { |
|
|
if (videoObj.type == 'yingshi' && player) { |
|
|
5 |
|
|
|
|
|
} else if (jessibuca) { |
|
|
} else if (jessibuca) { |
|
|
jessibuca.pause(); |
|
|
jessibuca.pause(); |
|
|
setIsPlaying(false) |
|
|
setIsPlaying(false) |
|
|