Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): stream 360 video instead of fetching entire video #9279

Merged
merged 1 commit into from
May 6, 2024

Conversation

TapuCosmo
Copy link
Contributor

The Immich web client fetches entire 360 videos before beginning to play them. This causes long/large 360 videos to be unplayable as the request to fetch a very large (tested with a > 30 GB video) 360 video eventually fails.

This PR fixes that issue by passing the URL to the video asset to the Photo Sphere Viewer module instead of fetching the entire video and converting it to a Blob that is then passed to the aforementioned module.

Copy link
Member

@bo0tzz bo0tzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not too familiar with the web code, but I think this approach might be applicable to all the asset serving (also non-panorama images and such), right?

@TapuCosmo
Copy link
Contributor Author

I'm not too familiar with the web code, but I think this approach might be applicable to all the asset serving (also non-panorama images and such), right?

The existing non-panoramic video player already uses this approach. (Hence why large regular videos do not have the same issue playing.)

@alextran1502 alextran1502 merged commit bc31404 into immich-app:main May 6, 2024
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants