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

feat!(android): exit fullscreen mode after finishing video playback #3978

Merged

Conversation

seyedmostafahasani
Copy link
Collaborator

@seyedmostafahasani seyedmostafahasani commented Jul 6, 2024

Summary

We don't need to exit fullscreen mode after finishing video playback because the user might be using repeat mode. This way, they won't need to interact with their phone after the video finishes.

Motivation

Fix this issue 3703.

Changes

Test plan

Copy link
Member

@KrzysztofMoch KrzysztofMoch left a comment

Choose a reason for hiding this comment

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

I have few questions:

  • Do we have same behaviour on iOS ?
  • What is default behaviour on android ?
  • This can be breaking behaviour (I guess, but not sure) so maybe we should exit when repeat=false

@seyedmostafahasani
Copy link
Collaborator Author

seyedmostafahasani commented Jul 10, 2024

@KrzysztofMoch
About the first question: On iOS, after finishing the video it doesn't exit fullscreen mode.
For the second question: The default behavior on Android depends on the player. I checked with different players. One of them exits fullscreen mode after finishing, while another doesn't.
Third question: I think we can apply this change on Android because we should have the same behavior on both OS (iOS and Android).
Imagine a user wants to see a list of movies. The user start watching the first movie in fullscreen mode. When the first video finishes, another video starts immediately, but the player exits fullscreen mode. As a result, the user has to activate fullscreen mode again.

Finally, I think it's better to not exit fullscreen mode after finishing video playback.
wdyt?

@freeboub
Copy link
Collaborator

Good explanation which justify the change. Agreed with @KrzysztofMoch , this behavior change is a breaking behavior it should be warned in release note !

@KrzysztofMoch
Copy link
Member

I would like to change this to

  • if repeat is false we exit fullscreen after video finish
  • if repeat is true we don't exit fullscreen

WDYT ? @seyedmostafahasani

@seyedmostafahasani
Copy link
Collaborator Author

@KrzysztofMoch I agree with you.

What do you think about the point below?

Imagine a user wants to see a list of movies. The user start watching the first movie in fullscreen mode. When the first video finishes, another video starts immediately, but the player exits fullscreen mode. As a result, the user has to activate fullscreen mode again.

Copy link
Member

@KrzysztofMoch KrzysztofMoch left a comment

Choose a reason for hiding this comment

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

Okay fair point

@seyedmostafahasani
Copy link
Collaborator Author

@KrzysztofMoch I think we don't need to exit full-screen mode automatically. I guess the user can exit it if they want to.

@KrzysztofMoch KrzysztofMoch changed the title fix(android): exit fullscreen mode after finishing video playback feat!(android): exit fullscreen mode after finishing video playback Jul 15, 2024
@KrzysztofMoch KrzysztofMoch merged commit 4b8d09e into TheWidlarzGroup:master Jul 15, 2024
3 checks passed
@seyedmostafahasani seyedmostafahasani deleted the fix/fullscreen-issue branch July 15, 2024 19:22
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.

3 participants