jhomlala / betterplayer

Better video player for Flutter, with multiple configuration options. Solving typical use cases!
Apache License 2.0
932 stars 1.04k forks source link

[BUG]unable to view PIP icon on the player #1299

Open Gayathri-kt opened 7 months ago

Gayathri-kt commented 7 months ago

unable to see the PIP icon on the player, even though i have enabled pip option and PipMenuIcon

pedraohenrique commented 5 months ago

+1

Tried to run the example app and got the message: flutter: Picture in picture is not supported in this device. If you're using Android, please check if you're using activity v2 embedding.

Trying to understand what's happening, I've tried to check whether the PiP is enabled and got the same either in IOS or Android.

Printed:

    debugPrint(
        'isPictureInPictureSupported: ${await _betterPlayerController.isPictureInPictureSupported()}');

Got:

flutter: isPictureInPictureSupported: false

Are there any configurations needed to make it work?

kunal2602 commented 5 months ago

https://jhomlala.github.io/betterplayer/#/pictureinpictureconfiguration