Skip to content

Commit

Permalink
fix: supportOffscreenCanvas 加上判断 ios 系统版本
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohappy committed Dec 20, 2024
1 parent 83101a5 commit 8e78273
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/avplayer/function/supportOffscreenCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e78273

Please sign in to comment.