From 06bcb552c5e2cf7b5432c17da01e7a37b4fa2adb Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 26 Jul 2024 23:47:38 +0800 Subject: [PATCH] revert stop, remove playing, get volume/brightness --- lib/plugin/pl_player/controller.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index d9eb33c8a..666367dd6 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -894,16 +894,16 @@ class PlPlayerController { if (repeat) { SmartDialog.showToast("stoping"); - // await seekTo(Duration.zero); - await _videoPlayerController?.stop(); + await seekTo(Duration.zero); + // await _videoPlayerController?.stop(); SmartDialog.showToast("stopped"); } - playerStatus.status.value = PlayerStatus.playing; + // playerStatus.status.value = PlayerStatus.playing; await _videoPlayerController?.play(); // if (!playerStatus.playing) await _videoPlayerController?.playOrPause(); - getCurrentVolume(); - getCurrentBrightness(); + // getCurrentVolume(); + // getCurrentBrightness(); // screenManager.setOverlays(false); }