From b7389539d8256b0210be1d5cbdc05ea32aaab8f0 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Tue, 2 Jan 2024 23:50:14 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E8=A7=86=E9=A2=91=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8D=E8=87=AA=E5=8A=A8pip=20issues=20#37?= =?UTF-8?q?9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/view.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index 29566e7b..8b64b93f 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -244,7 +244,10 @@ class _VideoDetailPageState extends State void _handleTransition(String name) { switch (name) { case 'inactive': - autoEnterPip(); + if (plPlayerController != null && + playerStatus == PlayerStatus.playing) { + autoEnterPip(); + } break; } }