setAutoPip method
Enters picture-in-picture automatically when the user leaves the app while this player is playing (Android; a no-op where unsupported).
Implementation
Future<void> setAutoPip(bool enabled) async {
final int? id = _playerId;
if (id == null) return;
try {
await UMediaChannel.call<void>(id, "setAutoPip", <String, Object?>{"enabled": enabled, "aspectRatio": value.aspectRatio});
} on PlatformException {
return;
} on MissingPluginException {
return;
}
}