isPictureInPictureSupported method
Check if picture in picture mode is supported in this device.
Implementation
Future<bool> isPictureInPictureSupported() async {
if (videoPlayerController == null) {
throw StateError("The data source has not been initialized");
}
final bool isPipSupported =
(await videoPlayerController!.isPictureInPictureSupported()) ?? false;
return isPipSupported && !_isFullScreen;
}