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

Prevent video player from entering "pop out" mode when switching apps #4048

Open
seanmaisch opened this issue Aug 1, 2024 · 3 comments
Open
Labels
Accepted Issue is confirmed and accepted by maintainers team bug Platform: iOS

Comments

@seanmaisch
Copy link

seanmaisch commented Aug 1, 2024

When a user navigates away from our app, whether it be by switching apps manually or externally linking to the web, the video player enters "pop out" mode, which can be construed by some as pictureInPicture.

Simply setting pictureInPicture={false} does not rectify this issue. We would really like to prevent iOS from popping the player out when leaving the application. One solution I considered, but would like to avoid due to performance issues and poor user experience, would be to completely unload the player when the app loses focus or is inactive, but that seems like a nuclear option.

Is there any way to prevent this behavior, or any plan on adding support for a feature like this?

Referenced as well by @jcksncllwy in #2373 (comment)

@KrzysztofMoch
Copy link
Member

So player is going into Picture in Picture even if pictureInPicture is set to false? - this is unexpected

@seanmaisch
Copy link
Author

Correct. In the example mentioned by @jcksncllwy in #2373 (comment), they are attempting to use the video player as a background element and when switching the application, it opens the video player in PIP.

My use-case where the issue is presenting itself is as follows:

We have a "preview" video for users who are not paid users. They are only allowed to watch for a certain amount of time, but if they switch away from the application (via ExternalLink) to convert to a paid user, the video follows them outside of the application and they are able to continue to watch in the "pop out" / "picture-in-picture" mode indefinitely, which is problematic for us.

Copy link

github-actions bot commented Sep 2, 2024

This issue is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this issue will be closed automatically.

@github-actions github-actions bot added the stale Closed due to inactivity or lack or resources label Sep 2, 2024
@freeboub freeboub added Accepted Issue is confirmed and accepted by maintainers team and removed stale Closed due to inactivity or lack or resources labels Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue is confirmed and accepted by maintainers team bug Platform: iOS
Projects
None yet
Development

No branches or pull requests

3 participants