Skip to content

Commit

Permalink
hideControls after play
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jul 29, 2024
1 parent 1c2768a commit a511bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin/pl_player/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@ class PlPlayerController {
// // SmartDialog.showToast(
// // (await audioSessionHandler.setActive(true)).toString());
// // 播放时自动隐藏控制条
controls = !hideControls;
// // repeat为true,将从头播放

if (repeat) {
Expand All @@ -914,6 +913,7 @@ class PlPlayerController {
// playerStatus.status.value = PlayerStatus.playing;
await _videoPlayerController?.play();
// if (!playerStatus.playing) await _videoPlayerController?.playOrPause();
controls = !hideControls;

// getCurrentVolume();
// getCurrentBrightness();
Expand Down

0 comments on commit a511bd5

Please sign in to comment.