fix: Movie page margins

This commit is contained in:
Aleksi Lassila
2024-04-02 21:20:09 +03:00
parent 880b653e8d
commit 96076aeebc
6 changed files with 40 additions and 28 deletions

View File

@@ -310,20 +310,6 @@
}
}
onMount(() => {
// Workaround because the paused state does not sync
// with the video element until a change is made
// paused = false;
// if (video && $playerState.jellyfinId) {
// if (video.src === '') fetchPlaybackInfo($playerState.jellyfinId);
// }
});
onDestroy(() => {
clearInterval(progressInterval);
if (fullscreen) exitFullscreen?.();
});
$: {
if (fullscreen && !getFullscreenElement?.()) {
if (reqFullscreenFunc) reqFullscreenFunc(videoWrapper);
@@ -368,6 +354,21 @@
mute = !mute;
}
}
onMount(() => {
// Workaround because the paused state does not sync
// with the video element until a change is made
// paused = false;
// if (video && $playerState.jellyfinId) {
// if (video.src === '') fetchPlaybackInfo($playerState.jellyfinId);
// }
});
onDestroy(() => {
console.log('Video destroyed');
clearInterval(progressInterval);
if (fullscreen) exitFullscreen?.();
});
</script>
<svelte:window on:keydown={handleShortcuts} />