From 3df2e5f5fc86787479aa6b4d3c74b4dbdf490afd Mon Sep 17 00:00:00 2001 From: canxin <69547456+canxin121@users.noreply.github.com> Date: Thu, 16 May 2024 02:30:09 +0800 Subject: [PATCH] [Test] Try fix ios duration not update --- lib/util/audio_controller.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/audio_controller.dart b/lib/util/audio_controller.dart index 7c31343..fb71d7c 100644 --- a/lib/util/audio_controller.dart +++ b/lib/util/audio_controller.dart @@ -190,7 +190,8 @@ class AudioHandler extends GetxController { musicList.indexWhere((element) => element.extra == music.extra); if (index != -1) { if (index == _player.currentIndex) { - await tryLazyLoadMusic(index, force: true); + await replacePlayingMusic(musicList[index].info.defaultQuality!); + // await tryLazyLoadMusic(index, force: true); } else { musicList[index].empty = true; }