From dce5d2d918cdddd4bbddfa47c5f266a32aabd195 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 3 Mar 2025 13:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E6=91=84=E5=83=8F=E5=A4=B4?= =?UTF-8?q?=E5=B7=A1=E6=A3=80=20=E7=BF=BB=E9=A1=B5=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/JessibucaH265/index.vue | 11 ++- .../video/components/videoPlayNew.vue | 71 +++++++++++++++++-- 2 files changed, 75 insertions(+), 7 deletions(-) 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 @@