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) {