revert 063dafe26911062def807dcba4724ee21df4ad66
revert temply fix windows vframe not showing
This commit is contained in:
parent
3e3be173c9
commit
226d75352e
@ -8,8 +8,7 @@ export async function loadFromResSmartly({ url, rules, onprogress }: {
|
||||
onprogress?: (progress: { download: number, decode: number }) => void
|
||||
}): Promise<CanvasImageSource[]> {
|
||||
const isChromium = navigator.userAgent.includes('Chrome') || navigator.userAgent.includes('Chromium');
|
||||
const isWindows = navigator.userAgent.includes('Windows');
|
||||
const useWebCodec = isChromium && 'VideoDecoder' in window && !isWindows;
|
||||
const useWebCodec = isChromium && 'VideoDecoder' in window;
|
||||
|
||||
const finalType =
|
||||
useWebCodec && url.video ? 'video' :
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user