Skip to content

Commit

Permalink
remove some await
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jul 25, 2024
1 parent b4a5268 commit 894974a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/plugin/pl_player/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class PlPlayerController {
// 跳转播放
if (seekTo != Duration.zero) {
// videoPlayerServiceHandler.seekToNotification(seekTo);
await this.seekTo(seekTo);
this.seekTo(seekTo);
}

// 自动播放
Expand Down Expand Up @@ -893,15 +893,15 @@ class PlPlayerController {
// // repeat为true,将从头播放
if (repeat) {
// await seekTo(Duration.zero);
await seekTo(Duration.zero, type: "slider");
seekTo(Duration.zero);
}

playerStatus.status.value = PlayerStatus.playing;
await _videoPlayerController?.play();
// if (!playerStatus.playing) await _videoPlayerController?.playOrPause();

await getCurrentVolume();
await getCurrentBrightness();
getCurrentVolume();
getCurrentBrightness();

// screenManager.setOverlays(false);
}
Expand Down

0 comments on commit 894974a

Please sign in to comment.