From 5fa32f1e2b2e165227d0f2a87fd8fd20aa565109 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Tue, 9 Jan 2024 23:13:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=8C=E5=87=BB=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E6=97=A0=E5=A3=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/view.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 570b031e..860342ef 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -89,11 +89,7 @@ class _PLVideoPlayerState extends State // 双击播放、暂停 void onDoubleTapCenter() { final PlPlayerController _ = widget.controller; - if (_.videoPlayerController!.state.playing) { - _.pause(); - } else { - _.play(); - } + _.videoPlayerController!.playOrPause(); } void doubleTapFuc(String type) {