enterPip method

Future<bool> enterPip({
  1. double? aspectRatio,
})

Implementation

Future<bool> enterPip({double? aspectRatio}) async {
  final int? id = _playerId;
  if (id == null) return false;
  try {
    return (await UMediaChannel.call<bool>(id, "enterPip", <String, Object?>{"aspectRatio": aspectRatio ?? value.aspectRatio})) ?? false;
  } on PlatformException {
    return false;
  } on MissingPluginException {
    return false;
  }
}