mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
linting
This commit is contained in:
parent
3b2009eb58
commit
266671c697
3 changed files with 4 additions and 4 deletions
|
|
@ -36,7 +36,7 @@ class VideoSessionManager {
|
|||
session.timer = setTimeout(() => {
|
||||
session.controller.release();
|
||||
this.#sessions.delete(assetId);
|
||||
}, 1_000);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
get(assetId: string): VideoController | undefined {
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ export class VideoController {
|
|||
this.#playOriginal = playOriginal;
|
||||
|
||||
const element = document.createElement('video');
|
||||
element.playsInline = true;
|
||||
element.disablePictureInPicture = true;
|
||||
element.setAttribute('playsinline', '');
|
||||
element.setAttribute('disablepictureinpicture', '');
|
||||
element.addEventListener('play', () => {
|
||||
this.loading = false;
|
||||
this.error = false;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
videoPlayer: HTMLVideoElement | undefined;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-useless-assignment
|
||||
let { asset, videoPlayer = $bindable() }: Props = $props();
|
||||
|
||||
let showVideo = $state(false);
|
||||
|
|
@ -34,7 +35,6 @@
|
|||
|
||||
{#if showVideo}
|
||||
<div class="size-full" transition:fade={{ duration: assetViewerFadeDuration }}>
|
||||
<!-- svelte-ignore a11y_media_has_caption -->
|
||||
<media-controller id="memory-video" nohotkeys class="size-full rounded-2xl object-contain transition-all">
|
||||
<immich-video
|
||||
slot="media"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue