mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 12:15:47 -04:00
fix(server): display insta-360 (#3688)
This commit is contained in:
parent
f1b8a7ab54
commit
7ca6f80ed2
@ -48,6 +48,7 @@ const image: Record<string, string[]> = {
|
|||||||
'.heic': ['image/heic'],
|
'.heic': ['image/heic'],
|
||||||
'.heif': ['image/heif'],
|
'.heif': ['image/heif'],
|
||||||
'.iiq': ['image/iiq', 'image/x-phaseone-iiq'],
|
'.iiq': ['image/iiq', 'image/x-phaseone-iiq'],
|
||||||
|
'.insp': ['image/jpeg'],
|
||||||
'.jpeg': ['image/jpeg'],
|
'.jpeg': ['image/jpeg'],
|
||||||
'.jpg': ['image/jpeg'],
|
'.jpg': ['image/jpeg'],
|
||||||
'.jxl': ['image/jxl'],
|
'.jxl': ['image/jxl'],
|
||||||
@ -79,6 +80,7 @@ const video: Record<string, string[]> = {
|
|||||||
'.3gp': ['video/3gpp'],
|
'.3gp': ['video/3gpp'],
|
||||||
'.avi': ['video/avi', 'video/msvideo', 'video/vnd.avi', 'video/x-msvideo'],
|
'.avi': ['video/avi', 'video/msvideo', 'video/vnd.avi', 'video/x-msvideo'],
|
||||||
'.flv': ['video/x-flv'],
|
'.flv': ['video/x-flv'],
|
||||||
|
'.insv': ['video/mp4'],
|
||||||
'.m2ts': ['video/mp2t'],
|
'.m2ts': ['video/mp2t'],
|
||||||
'.mkv': ['video/x-matroska'],
|
'.mkv': ['video/x-matroska'],
|
||||||
'.mov': ['video/quicktime'],
|
'.mov': ['video/quicktime'],
|
||||||
|
@ -297,7 +297,9 @@
|
|||||||
on:close={closeViewer}
|
on:close={closeViewer}
|
||||||
on:onVideoEnded={() => (shouldPlayMotionPhoto = false)}
|
on:onVideoEnded={() => (shouldPlayMotionPhoto = false)}
|
||||||
/>
|
/>
|
||||||
{:else if asset.exifInfo?.projectionType === ProjectionType.EQUIRECTANGULAR}
|
{:else if asset.exifInfo?.projectionType === ProjectionType.EQUIRECTANGULAR || asset.originalPath
|
||||||
|
.toLowerCase()
|
||||||
|
.endsWith('.insp')}
|
||||||
<PanoramaViewer {publicSharedKey} {asset} />
|
<PanoramaViewer {publicSharedKey} {asset} />
|
||||||
{:else}
|
{:else}
|
||||||
<PhotoViewer {publicSharedKey} {asset} on:close={closeViewer} />
|
<PhotoViewer {publicSharedKey} {asset} on:close={closeViewer} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user