From f76423d222892dfdff9de6893f5989cdf8da92d8 Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Tue, 23 Jul 2024 14:18:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commonComponents/video/index.vue | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/pages/component/commonComponents/video/index.vue b/pages/component/commonComponents/video/index.vue index 72d82fe..004a652 100644 --- a/pages/component/commonComponents/video/index.vue +++ b/pages/component/commonComponents/video/index.vue @@ -19,7 +19,7 @@ 此设备暂不支持观看当前视频
请移步到安卓手机进行学习! -
+
{ + if (this.$platform == 'ios') { + console.log('不符合播放条件'); + if (this.currentVideo.type == 1 && res.video.m3u8Url == null || this.currentVideo.type == 1 && res.video.m3u8Url == '') { + // 只存在私有加密 + this.show = true + uni.showModal({ + content: '抱歉,苹果手机不支持此加密视频格式,您可以在安卓端观看本视频', + confirmText: '知道了', + showCancel: false, + success: function (res) { + if (res.confirm) { + // uni.navigateBack({delta: 2}) + } + } + }) + return + } + } var data = { ...res.video, }; @@ -897,7 +915,7 @@ ] } - + if (this.videoData.type == 1) { if (this.videoData.m3u8Url == null || this.videoData.m3u8Url == '') { console.log('这是私有加密的视频');