From 3eba6fa7ff5b9daf9077dddefac86039cdd3d291 Mon Sep 17 00:00:00 2001 From: gxz Date: Fri, 6 Dec 2024 18:36:39 +0800 Subject: [PATCH] fix: pip in android --- .../advanced/picture_in_picture/picture_in_picture.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/lib/examples/advanced/picture_in_picture/picture_in_picture.dart b/example/lib/examples/advanced/picture_in_picture/picture_in_picture.dart index 18da0e4c5..ceba00f4e 100644 --- a/example/lib/examples/advanced/picture_in_picture/picture_in_picture.dart +++ b/example/lib/examples/advanced/picture_in_picture/picture_in_picture.dart @@ -204,7 +204,9 @@ class _State extends State with WidgetsBindingObserver { } Future _leaveChannel() async { - await _engine.stopPip(); + if(Platform.isIOS){ + await _engine.stopPip(); + } await _engine.leaveChannel(); setState(() { openCamera = true;