diff --git a/src/components/JessibucaH265/index.vue b/src/components/JessibucaH265/index.vue index 459dae4..61bf33c 100644 --- a/src/components/JessibucaH265/index.vue +++ b/src/components/JessibucaH265/index.vue @@ -35,11 +35,20 @@ export default { Promise.all([this.getQxToken(), this.selectVideoLoginInfo()]).then(() => { // 2. Promise.all 等待两个异步请求结束后 再组装url const { puid, ballIndex } = newValue + this.playUrl = this.qxInfo.q2Url + 'stream.flv?puid=' + puid + '&idx=' + ballIndex + '&stream=0&token=' + this.qxToken console.log('this.playUrl', this.playUrl) - this.playvideo() + if (this.jessibuca) { + // await this.jessibuca.destroy() + this.playvideo() + } else { + this.createJessibuca() + this.playvideo() + } }) + } else { + this.stopvideo() } }, deep: true, diff --git a/src/views/screen/components/video/components/videoPlayNew.vue b/src/views/screen/components/video/components/videoPlayNew.vue index 29a9636..1f7e675 100644 --- a/src/views/screen/components/video/components/videoPlayNew.vue +++ b/src/views/screen/components/video/components/videoPlayNew.vue @@ -9,7 +9,7 @@