|
|
@ -149,15 +149,15 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
async getVideoUrl(){ |
|
|
|
let {data,code} = await requestPost('/actual/base/videoMonitoring/getVideoUrl',{monitorCode:this.monitorCode}) |
|
|
|
if(code === 0){ |
|
|
|
this.url = data.replace('https://111.34.21.222:12443/',`${window.SITE_CONFIG['liveURL']}`) |
|
|
|
this.play() |
|
|
|
async getVideoUrl() { |
|
|
|
let { data, code } = await requestPost('/actual/base/videoMonitoring/getVideoUrl', { monitorCode: this.monitorCode }); |
|
|
|
if (code === 0) { |
|
|
|
const serverRegex = /^http:\/\/[^\/]+/; |
|
|
|
this.url = data.replace(serverRegex, `${window.SITE_CONFIG['liveURL']}`); |
|
|
|
this.play(); |
|
|
|
} |
|
|
|
}, |
|
|
|
create(options) { |
|
|
|
console.log('seeee'); |
|
|
|
options = options || {}; |
|
|
|
this.jessibuca = new window.Jessibuca( |
|
|
|
Object.assign( |
|
|
|