isPictureInPictureSupported() returns false even the PIP is supported
device: tried on:
ios simulator [iPad Pro (12.9-inch) (6th genertion)]
physical device [iPhone 6s Plus]
I add two print in lib/src/core/better_player_controller.dart > enablePictureInPicture()
...
.
Future<void>? enablePictureInPicture(GlobalKey betterPlayerGlobalKey) async {
if (videoPlayerController == null) {
throw StateError("The data source has not been initialized");
}
debugPrint("1 is pip supported delete it letter line : 1062: ${await videoPlayerController!.isPictureInPictureSupported()}");
final bool isPipSupported =
(await videoPlayerController!.isPictureInPictureSupported()) ?? false;
debugPrint("2 is pip supported delete it letter line : 1066: $isPipSupported");
if (isPipSupported) {
_wasInFullScreenBeforePiP = _isFullScreen;
...
.
console:
flutter: isPictureInPictureSupported false
[ERROR:flutter/shell/platform/darwin/ios/framework/Source/profiler_metrics_ios.mm(203)] Error retrieving thread information: (os/kern) invalid argument
flutter: 1 is pip supported delete it letter line : 1062: true
flutter: 2 is pip supported delete it letter line : 1066: true
player only plays audio not video in simulator.
isPictureInPictureSupported() returns false even the PIP is supported device: tried on:
I add two print in lib/src/core/better_player_controller.dart > enablePictureInPicture()
my code