jitsi / jitsi-meet-flutter-sdk

Jitsi Meet plugin for Flutter
Apache License 2.0
41 stars 32 forks source link

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

Open fabiocody opened 1 month ago

fabiocody commented 1 month ago

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 commented 1 month ago

What do you need to do programatically?

fabiocody commented 1 month ago

Enter and exit PiP

saghul commented 1 month ago

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 commented 1 month ago

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.