From 1ab746118eec22ee0a13f6f57d3f92b36c7655e7 Mon Sep 17 00:00:00 2001 From: guilinlan jin Date: Fri, 19 Jul 2024 10:39:17 +0800 Subject: [PATCH] 2222 --- .../commonComponents/video/index.vue | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pages/component/commonComponents/video/index.vue b/pages/component/commonComponents/video/index.vue index 180ae1d..229c91f 100644 --- a/pages/component/commonComponents/video/index.vue +++ b/pages/component/commonComponents/video/index.vue @@ -888,15 +888,20 @@ export default { if(this.$platform=='ios'){ //标准加密 playerOptions = { - ...playerOptions, - "playauth": this.videoData.playAuth, // 必选参数,参数值可通过调用GetVideoPlayAuth接口获取。 - format:'m3u8', - // "encryptType": 1, // 必选参数,当播放私有加密流时需要设置本参数值为1。其它情况无需设置。 - "playConfig": { - "EncryptType": 'HLSEncryption', - "MtsHlsUriToken": this.videoData.mtsHlsUriToken, + + + ...playerOptions, + source: this.videoData.m3u8Url + // ...playerOptions, + // source: this.videoData.m3u8Url, + // "playauth": this.videoData.playAuth, // 必选参数,参数值可通过调用GetVideoPlayAuth接口获取。 + // format:'m3u8', + // // "encryptType": 1, // 必选参数,当播放私有加密流时需要设置本参数值为1。其它情况无需设置。 + // "playConfig": { + // "EncryptType": 'HLSEncryption', + // "MtsHlsUriToken": this.videoData.mtsHlsUriToken, - }, + // }, } }else{