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('这是私有加密的视频');