You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After confirming that enablePictureInPicture returns true and then attempting to run PIP mode, I encountered an error.
This issue can be resolved by declaring android:supportsPictureInPicture="true" in the AndroidManifest.xml file.
Additionally, in the example, there was code that sets setBetterPlayerGlobalKey to arbitrarily assign a GlobalKey inside BetterPlayer, but I could not find that mentioned in the documentation.
Additionally, if you are unable to get PiP mode to run properly on iOS, please go to Signing &; Capabilities -> Background Modes in XCode and check all 3 boxes
An error message saying “Current activity does not support picture-in-picture” occurs on Android devices.
I am currently implementing Picture-in-Picture (PIP) functionality on an Android device. I followed the official documentation at the link below for the setup:
https://jhomlala.github.io/betterplayer/#/pictureinpictureconfiguration
After confirming that
enablePictureInPicture
returnstrue
and then attempting to run PIP mode, I encountered an error.This issue can be resolved by declaring
android:supportsPictureInPicture="true"
in theAndroidManifest.xml
file.Additionally, in the example, there was code that sets
setBetterPlayerGlobalKey
to arbitrarily assign a GlobalKey inside BetterPlayer, but I could not find that mentioned in the documentation.It may also be helpful to check the following URL:
https://github.com/jhomlala/betterplayer/blob/master/example/lib/pages/picture_in_picture_page.dart
I am adding this issue to assist with debugging for anyone who may encounter the same problem.
The text was updated successfully, but these errors were encountered: