Skip to content

Commit

Permalink
revert hidecontrols, delay play
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jul 29, 2024
1 parent abab8f5 commit e0a5fc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/plugin/pl_player/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -905,15 +905,17 @@ class PlPlayerController {
// // 播放时自动隐藏控制条
// // repeat为true,将从头播放

controls = !hideControls;
if (repeat) {
SmartDialog.showToast("stoping");
await seekTo(Duration.zero, type: "slider");
SmartDialog.showToast("stopped");
}
// playerStatus.status.value = PlayerStatus.playing;
await _videoPlayerController?.play();
Future.delayed(const Duration(milliseconds: 100), () {
_videoPlayerController?.play();
});
// if (!playerStatus.playing) await _videoPlayerController?.playOrPause();
controls = !hideControls;

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

0 comments on commit e0a5fc3

Please sign in to comment.