|
|
@@ -251,14 +251,14 @@ |
|
|
|
} |
|
|
|
|
|
|
|
this.showVideo = false; |
|
|
|
let params = { |
|
|
|
sensorId: this.sensorId, |
|
|
|
streamId: this.streamId, |
|
|
|
videoToken: this.videoToken |
|
|
|
}; |
|
|
|
stopUrl(params).then(res => { |
|
|
|
|
|
|
|
}) |
|
|
|
// let params = { |
|
|
|
// sensorId: this.sensorId, |
|
|
|
// streamId: this.streamId, |
|
|
|
// videoToken: this.videoToken |
|
|
|
// }; |
|
|
|
// stopUrl(params).then(res => { |
|
|
|
|
|
|
|
// }) |
|
|
|
}, |
|
|
|
loadWebPlayerSDK() { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
@@ -342,32 +342,44 @@ |
|
|
|
this.sensorName = name; |
|
|
|
this.showVideo = true; |
|
|
|
|
|
|
|
startUrl({ |
|
|
|
sensorId: id |
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
let { |
|
|
|
code, |
|
|
|
data |
|
|
|
} = res; |
|
|
|
if (code == 200) { |
|
|
|
if (this.sensorId == 'SXT001') { |
|
|
|
this.videoUrl = 'http://123.57.209.16:8004/video/1.mp4' |
|
|
|
|
|
|
|
} else if (this.sensorId == 'SXT002') { |
|
|
|
this.videoUrl = 'http://123.57.209.16:8004/video/5.mp4' |
|
|
|
|
|
|
|
} else if (this.sensorId == 'SXT003') { |
|
|
|
this.videoUrl = 'http://123.57.209.16:8004/video/2.mp4' |
|
|
|
|
|
|
|
} |
|
|
|
// this.videoUrl = data.rtsPullStreamUrls[0].url; |
|
|
|
this.streamId = data.streamId; |
|
|
|
this.videoToken = data.videoToken; |
|
|
|
this.setVideo() |
|
|
|
} |
|
|
|
}) |
|
|
|
// startUrl({ |
|
|
|
// sensorId: id |
|
|
|
// }).then(res => { |
|
|
|
|
|
|
|
// let { |
|
|
|
// code, |
|
|
|
// data |
|
|
|
// } = res; |
|
|
|
// if (code == 200) { |
|
|
|
// if (this.sensorId == 'SXT001') { |
|
|
|
// this.videoUrl = 'http://123.57.209.16:8004/video/1.mp4' |
|
|
|
|
|
|
|
// } else if (this.sensorId == 'SXT002') { |
|
|
|
// this.videoUrl = 'http://123.57.209.16:8004/video/5.mp4' |
|
|
|
|
|
|
|
// } else if (this.sensorId == 'SXT003') { |
|
|
|
// this.videoUrl = 'http://123.57.209.16:8004/video/2.mp4' |
|
|
|
|
|
|
|
// } |
|
|
|
// // this.videoUrl = data.rtsPullStreamUrls[0].url; |
|
|
|
// this.streamId = data.streamId; |
|
|
|
// this.videoToken = data.videoToken; |
|
|
|
// this.setVideo() |
|
|
|
// } |
|
|
|
// }) |
|
|
|
if (this.sensorId == 'SXT001') { |
|
|
|
this.videoUrl = 'http://123.57.209.16:8004/video/1.mp4' |
|
|
|
|
|
|
|
} else if (this.sensorId == 'SXT002') { |
|
|
|
this.videoUrl = 'http://123.57.209.16:8004/video/5.mp4' |
|
|
|
|
|
|
|
} else if (this.sensorId == 'SXT003') { |
|
|
|
this.videoUrl = 'http://123.57.209.16:8004/video/2.mp4' |
|
|
|
|
|
|
|
} |
|
|
|
// this.videoUrl = data.rtsPullStreamUrls[0].url; |
|
|
|
|
|
|
|
this.setVideo() |
|
|
|
}, |
|
|
|
confirmVideo() { |
|
|
|
this.showVideo = false; |
|
|
|