chore: fix connect play playlist/album and clear queue not working

This commit is contained in:
Kingkor Roy Tirtho 2025-09-11 21:52:43 +06:00
parent 4ed40d95b2
commit 70970f62f1

View File

@ -161,7 +161,7 @@ class ServerConnectRoutes {
event.onLoad((event) async {
await audioPlayerNotifier.load(
event.data.tracks as List<SpotubeFullTrackObject>,
event.data.tracks.cast<SpotubeFullTrackObject>().toList(),
autoPlay: true,
initialIndex: event.data.initialIndex ?? 0,
);
@ -186,7 +186,7 @@ class ServerConnectRoutes {
});
event.onStop((event) async {
await audioPlayer.stop();
await ref.read(audioPlayerProvider.notifier).stop();
});
event.onNext((event) async {