jitsi / jitsi-meet-flutter-sdk

Jitsi Meet plugin for Flutter
Apache License 2.0
31 stars 25 forks source link

[FEATURE]: Could you add PiP listener? Or method which forces PiP mode? #26

Open stryder123451 opened 6 months ago

stryder123451 commented 6 months ago

Hi, could you please, add Picture in Picture mode listener, or method which forces Picture in Picture mode?

gabiborlea commented 6 months ago

There is a little issue with the android part when integrating this, but I'll give it a look and see what I can do.

stryder123451 commented 6 months ago

There is a little issue with the android part when integrating this, but I'll give it a look and see what I can do.

i need this feature only in iOS, or could you please , say , where i can listen , PiP changed? I saw your code and try to edit this. I need hide keyboard when jitsi goes to full screen from PiP mode, i tried like this:

    override func viewWillTransition(to size: CGSize,
                                     with coordinator: UIViewControllerTransitionCoordinator) {
        super.viewWillTransition(to: size, with: coordinator)

        let rect = CGRect(origin: CGPoint.zero, size: size)
        pipViewCoordinator?.resetBounds(bounds: rect)
        view.endEditing(true) // Here 
    }
stryder123451 commented 6 months ago

@gabiborlea ok, i did it, but it will be cool if you could add PiP listener, i saw it in other packages, but it was only for android

stryder123451 commented 6 months ago

@gabiborlea and also , think jitsi must close keyboard when goes into PiP mode, cause it causes lags like this: image

gabiborlea commented 5 months ago

How to reproduce this issue?

stryder123451 commented 5 months ago

How to reproduce this issue?

open keyboard on iOS when jitsi in pip mode, and with opened keyboard set jitsi in fullscreen, i already fix that and planning to make pull request soon