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

[Feature] Add the possibility to control PiP programmatically #82

Open
fabiocody opened this issue Sep 2, 2024 · 4 comments
Open

[Feature] Add the possibility to control PiP programmatically #82

fabiocody opened this issue Sep 2, 2024 · 4 comments

Comments

@fabiocody
Copy link
Contributor

It would be nice to programmatically control the status of PiP.

From a quick look at the code, it seems feasible on iOS.
Unfortunately, I'm not familiar enough with Android to assess its feasibility there.

If anyone is interested, I'm open to collaborating on implementing this feature.

@saghul
Copy link
Member

saghul commented Sep 2, 2024

What do you need to do programatically?

@fabiocody
Copy link
Contributor Author

Enter and exit PiP

@saghul
Copy link
Member

saghul commented Sep 2, 2024

It's not possible to exit PiP programatically on Android, only to enter it. We currently enter it automatically if the activity goes to the background, or the user can use the caret button.

What use case do you have?

@fabiocody
Copy link
Contributor Author

Actually, for my specific use case, I only need to programmatically enter PiP.

My goal is to navigate the user to another page when they click on a custom button within Jitsi.
To achieve this, I need to enter PiP to ensure the underlying app becomes visible.

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

No branches or pull requests

2 participants