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: Improve transitions in/out of playing video #636

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

nikclayton
Copy link
Contributor

Previous code didn't trigger the transition from ViewMediaActivity when playing a video until the video had loaded. If the connection was slow or had other issues this resulted in the video "sticking" in the timeline until it loaded.

Change this, and trigger the transition immediately.

Fixes #598

While looking at this:

  • Save the play/pause state of the video during a swipe, pause the video, and restore the state when the swipe is cancelled.
  • Transition the entire video view, to improve the animated transition back to the activity.
  • Remove the custom progress spinner, use the one provided by the player.
  • Display the player controller via the layout XML instead of code

Previous code didn't trigger the transition from `ViewMediaActivity`
when playing a video until the video had loaded. If the connection
was slow or had other issues this resulted in the video "sticking"
in the timeline until it loaded.

Change this, and trigger the transition immediately.

Fixes pachli#598

While looking at this:

- Save the play/pause state of the video during a swipe, pause the
  video, and restore the state when the swipe is cancelled.
- Transition the entire video view, to improve the animated transition
  back to the activity.
- Remove the custom progress spinner, use the one provided by the
  player.
- Display the player controller via the layout XML instead of code
@nikclayton nikclayton merged commit b3bce36 into pachli:main Apr 23, 2024
14 checks passed
@nikclayton nikclayton deleted the 598-video-fragment-transition branch April 23, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video / gif issue for lower bandwidth users
1 participant