|
|
@ -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 } |
|
|
|
const Uri = 'http://' + process.env.CAMERA_APP_BASE_API + ':3000/cameras/close/' |
|
|
|
// console.log(process.env.VUE_APP_CAMERA_API) |
|
|
|
const Uri = 'http://' + process.env.VUE_APP_CAMERA_API + ':3000/cameras/close/' |
|
|
|
axios.post(Uri, qs.stringify(data), |
|
|
|
{ |
|
|
|
headers: { |
|
|
@ -76,7 +77,7 @@ export default { |
|
|
|
}, |
|
|
|
play() { |
|
|
|
const data = { rtspUrl: this.rtspUrl, size: '1024*768' } |
|
|
|
const Uri = 'http://' + process.env.CAMERA_APP_BASE_API + ':3000/cameras/' |
|
|
|
const Uri = 'http://' + process.env.VUE_APP_CAMERA_API + ':3000/cameras/' |
|
|
|
axios.post(Uri, qs.stringify(data), |
|
|
|
{ |
|
|
|
headers: { |
|
|
@ -85,7 +86,7 @@ export default { |
|
|
|
} |
|
|
|
).then(res => { |
|
|
|
// res.data.port |
|
|
|
const url = 'ws://' + process.env.CAMERA_APP_BASE_API + ':' + res.data.port |
|
|
|
const url = 'ws://' + process.env.VUE_APP_CAMERA_API + ':' + res.data.port |
|
|
|
// var canvas = document.getElementById('canvas') |
|
|
|
const opt = { |
|
|
|
contianer: this.$refs['canvas-wrap'], |
|
|
|