feat: resolution selection and default preview playback for 360° panorama videos #15747
+66
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello team, thanks for building this amazing app! I am surprised that it already includes photo-sphere-viewer and is even able to play 360° panorama videos.
However I discover that immich is playing original file 360° panorama videos. My 360° panorama videos are 5.6K and suitable formats (HEVC, AV1) are not fully supported. For example linux firefox can't play HEVC:
Mozilla will not support HEVC while it is encumbered by patents.
Hope we can play transcoded video files in 360° panorama video mode by default and provide option for user to upgrade to full resolution, this is the PR that address this issue:
Resolution Selection for Panorama Viewer:
@photo-sphere-viewer/resolution-plugin
and added the ability to switch to the original, full-resolution video for users who want the highest fidelity.Default Preview Playback:
getAssetPlaybackUrl
) by default to reduce network usage and better compatibility.getAssetOriginalUrl
) is loaded only when the user selects the "Original" resolution or zooms in past a threshold (≥75% zoom).Navbar and Settings Enhancements:
SettingsPlugin
for a more intuitive interface, allowing users to easily access the resolution options.Changes Made
@photo-sphere-viewer/resolution-plugin
and@photo-sphere-viewer/settings-plugin
to bothpackage.json
andpackage-lock.json
.photo-sphere-viewer-adapter.svelte
:ResolutionPlugin
with preview (labeled as default) and original resolutions.image-panorama-viewer.svelte
andvideo-panorama-viewer.svelte
to useoriginalPanorama
for original resolution.Screenshots