web/ffmpeg: define multithreading support outside of web worker context

there's no navigator.maxTouchPoints in web worker context, so previously there was no way to detect whether safari is running on ipad or not
This commit is contained in:
wukko
2025-06-29 13:45:39 +06:00
parent b2c5c42ae3
commit 0ac42d5b9d
5 changed files with 20 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ if (browser) {
// enable local processing by default everywhere but android chrome
defaultLocalProcessing: !(device.is.android && device.browser.chrome),
multithreading: !iOS || (iOS && iosVersion >= 18),
multithreading: !iOS || iosVersion >= 18,
};
device.userAgent = navigator.userAgent;