|
|
@ -57,7 +57,8 @@ export default { |
|
|
|
// this.myVideo.pause() |
|
|
|
// $.post('http://127.0.0.1:3000/cameras/close/', { rtspUrl: $('#rtsp').val() }, function(result) { |
|
|
|
const data = { rtspUrl: this.rtspUrl } |
|
|
|
axios.post('http://127.0.0.1:3000/cameras/close/', qs.stringify(data), |
|
|
|
const Uri = 'http://' + process.env.CAMERA_APP_BASE_API + ':3000/cameras/close/' |
|
|
|
axios.post(Uri, qs.stringify(data), |
|
|
|
{ |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' |
|
|
@ -75,7 +76,8 @@ export default { |
|
|
|
}, |
|
|
|
play() { |
|
|
|
const data = { rtspUrl: this.rtspUrl, size: '1024*768' } |
|
|
|
axios.post('http://127.0.0.1:3000/cameras/', qs.stringify(data), |
|
|
|
const Uri = 'http://' + process.env.CAMERA_APP_BASE_API + ':3000/cameras/' |
|
|
|
axios.post(Uri, qs.stringify(data), |
|
|
|
{ |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' |
|
|
@ -83,7 +85,7 @@ export default { |
|
|
|
} |
|
|
|
).then(res => { |
|
|
|
// res.data.port |
|
|
|
const url = 'ws://127.0.0.1:' + res.data.port |
|
|
|
const url = 'ws://' + process.env.CAMERA_APP_BASE_API + ':' + res.data.port |
|
|
|
// var canvas = document.getElementById('canvas') |
|
|
|
const opt = { |
|
|
|
contianer: this.$refs['canvas-wrap'], |
|
|
@ -107,5 +109,9 @@ export default { |
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped> |
|
|
|
::v-deep .el-dialog { |
|
|
|
height: 835xp; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
color: white; |
|
|
|
} |
|
|
|
</style> |