mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
* impl and unit tests for replaceAsset * Remove it.only * Typo in generated spec +regen * Remove unused dtos * Dto removal fallout/bugfix * fix - missed a line * sql:generate * Review comments * Unused imports * chore: clean up --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
18 lines
687 B
Svelte
18 lines
687 B
Svelte
<script lang="ts">
|
|
import { AssetTypeEnum } from '@immich/sdk';
|
|
import { ProjectionType } from '$lib/constants';
|
|
import VideoNativeViewer from '$lib/components/asset-viewer/video-native-viewer.svelte';
|
|
import PanoramaViewer from '$lib/components/asset-viewer/panorama-viewer.svelte';
|
|
|
|
export let assetId: string;
|
|
export let projectionType: string | null | undefined;
|
|
export let checksum: string;
|
|
export let loopVideo: boolean;
|
|
</script>
|
|
|
|
{#if projectionType === ProjectionType.EQUIRECTANGULAR}
|
|
<PanoramaViewer asset={{ id: assetId, type: AssetTypeEnum.Video }} />
|
|
{:else}
|
|
<VideoNativeViewer {loopVideo} {checksum} {assetId} on:onVideoEnded on:onVideoStarted />
|
|
{/if}
|