diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index b9a8a3646..42ee77e3b 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -1438,12 +1438,7 @@ class PlPlayerController { // 双击播放、暂停 Future onDoubleTapCenter() async { - if (videoPlayerController!.state.completed) { - await videoPlayerController!.seek(Duration.zero); - videoPlayerController!.play(); - } else { - videoPlayerController!.playOrPause(); - } + videoPlayerController!.playOrPause(); } final RxBool mountSeekBackwardButton = false.obs; diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index f3e4fb82c..fc66fd457 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -1783,8 +1783,13 @@ class _PLVideoPlayerState extends State return Listener( behavior: HitTestBehavior.translucent, onPointerDown: (event) { - if (event.buttons == kMiddleMouseButton) { - plPlayerController.triggerFullScreen(status: !isFullScreen); + final buttons = event.buttons; + final isSecondaryBtn = buttons == kSecondaryMouseButton; + if (isSecondaryBtn || buttons == kMiddleMouseButton) { + plPlayerController.triggerFullScreen( + status: !isFullScreen, + inAppFullScreen: isSecondaryBtn, + ); } }, onPointerSignal: (event) {