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

refactor(mobile): Use hooks to manage Chewie controller for video #7008

Merged
merged 10 commits into from
Feb 23, 2024

Conversation

martyfuhry
Copy link
Contributor

  • Also changes to using delayed loading throbbers
  • Fixes an issue where videos would not play in immersive mode by default
  • Changes the default hide controls timer to 1.5 seconds to more closely match "the app that shall not be named"
  • Changes the overlay loading to use a delayed loading

This was all to improve the asset video playback experience while navigating the main timeline.

Copy link

cloudflare-pages bot commented Feb 10, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a4128d3
Status: ✅  Deploy successful!
Preview URL: https://761938a6.immich.pages.dev
Branch Preview URL: https://fix-video-delayed-loading-th.immich.pages.dev

View logs

@alextran1502
Copy link
Contributor

When you click on a video, I see that it is immediately in the immersive mode. Tapping on the screen, the control interface shows briefly and returns to the immersive mode. I think this is a bit inconvenient if you want to share a video, because you will have to aim to the middle of the screen to tap and then hit the pause button to get the control interface to show up

@martyfuhry
Copy link
Contributor Author

martyfuhry commented Feb 10, 2024

That is definitely a bug. The intended behavior is for the controls to show for the hideControlsTimer duration, but they are hiding immediately. I will fix that, thanks!

@martyfuhry martyfuhry force-pushed the fix/video-delayed-loading-throbber branch from f6ab532 to 985fcba Compare February 14, 2024 23:11
@martyfuhry
Copy link
Contributor Author

Rebased and working well on my end here! Ready for another round of review.

@alextran1502 alextran1502 merged commit 3cd3411 into main Feb 23, 2024
25 checks passed
@alextran1502 alextran1502 deleted the fix/video-delayed-loading-throbber branch February 23, 2024 05:18
danieldietzler pushed a commit that referenced this pull request Feb 23, 2024
)

* video loading delayed

* Chewie controller implemented in hook

* fixing look and feel

* Finalizing delay and animations

* Fixes issue with immersive mode showing immediately in videos

* format fix

* Fixes bug where video controls would hide immediately after showing while playing and reverts hide controls timer to 5 seconds

* Fixed rebase issues

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
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

3 participants