|
@@ -88,14 +88,21 @@ export default {
|
|
}
|
|
}
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
const accessToken = res.data.data.accessToken
|
|
const accessToken = res.data.data.accessToken
|
|
|
|
+ var channel = 1
|
|
|
|
+ var deviceSerial = item.deviceSerial
|
|
if (!accessToken) {
|
|
if (!accessToken) {
|
|
this.$message.error('获取监控token失败!')
|
|
this.$message.error('获取监控token失败!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.videoDialogVisible = true
|
|
this.videoDialogVisible = true
|
|
|
|
+ if (deviceSerial.includes('_')) {
|
|
|
|
+ channel = item.deviceSerial.split('_')[1]
|
|
|
|
+ deviceSerial = item.deviceSerial.split('_')[0]
|
|
|
|
+ }
|
|
|
|
+
|
|
this.video = {
|
|
this.video = {
|
|
...item,
|
|
...item,
|
|
- src: `https://open.ys7.com/ezopen/h5/iframe?url=ezopen://open.ys7.com/${item.deviceSerial}/1.live&autoplay=1&accessToken=${accessToken}`
|
|
|
|
|
|
+ src: `https://open.ys7.com/ezopen/h5/iframe?url=ezopen://open.ys7.com/${deviceSerial}/${channel}.live&autoplay=1&accessToken=${accessToken}`
|
|
}
|
|
}
|
|
}).catch((res) => {
|
|
}).catch((res) => {
|
|
console.error(res)
|
|
console.error(res)
|