Compare commits
1
Commits
f5cab67ef3
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45c275ae4f |
@@ -117,6 +117,9 @@ window.addEventListener('pointerdown', () => {
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('contextmenu', (e) => {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
const isPortrait = ref(window.innerHeight > window.innerWidth);
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@ 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 useWebCodec = isChromium && 'VideoDecoder' in window;
|
||||
const isWindows = navigator.userAgent.includes('Windows');
|
||||
const useWebCodec = isChromium && 'VideoDecoder' in window && !isWindows;
|
||||
|
||||
const finalType =
|
||||
useWebCodec && url.video ? 'video' :
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user