Skip to content

Commit

Permalink
[Test] Try fix first play updateRx in Ios
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed May 6, 2024
1 parent 5cd372c commit 8a88e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/audio_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ class AudioHandler extends GetxController {

// 添加新的音乐
playMusicList.add(playMusic);
updateRx(music: playMusic);
await playSourceList.add(playMusic.toAudioSource());

// 播放新的音乐
await seek(Duration.zero, index: playSourceList.length - 1);

updateRx(music: playMusic);
await play();
} catch (e) {
talker.error("[Music Handler] In addMusicPlay, Error occur: $e");
Expand Down

0 comments on commit 8a88e6d

Please sign in to comment.