From 8e78273c889b94d5248de82e8e48aa597af0adc8 Mon Sep 17 00:00:00 2001 From: zhaohappy <2281756061@qq.com> Date: Fri, 20 Dec 2024 14:23:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20supportOffscreenCanvas=20=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E5=88=A4=E6=96=AD=20ios=20=E7=B3=BB=E7=BB=9F=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/avplayer/function/supportOffscreenCanvas.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/avplayer/function/supportOffscreenCanvas.ts b/src/avplayer/function/supportOffscreenCanvas.ts index 0499b1d..ca76130 100644 --- a/src/avplayer/function/supportOffscreenCanvas.ts +++ b/src/avplayer/function/supportOffscreenCanvas.ts @@ -25,11 +25,14 @@ import support from 'common/util/support' import browser from 'common/util/browser' +import os from 'common/util/os' export default function supportOffscreenCanvas() { let result = support.offscreenCanvas // webgl with offscreencanvas only supported for Safari 17+ - if (browser.safari && !browser.checkVersion(browser.version, '17', true)) { + if (browser.safari && !browser.checkVersion(browser.version, '17', true) + || os.ios && !browser.checkVersion(os.version, '17', true) + ) { result = false } return result