jitsi / jitsi-meet-flutter-sdk

Jitsi Meet plugin for Flutter
Apache License 2.0
44 stars 33 forks source link

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

Open fabiocody opened 2 months ago

fabiocody commented 2 months 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 2 months ago

What do you need to do programatically?

fabiocody commented 2 months ago

Enter and exit PiP

saghul commented 2 months 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 2 months 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.