mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore: fix connect play playlist/album and clear queue not working
This commit is contained in:
parent
4ed40d95b2
commit
70970f62f1
@ -161,7 +161,7 @@ class ServerConnectRoutes {
|
|||||||
|
|
||||||
event.onLoad((event) async {
|
event.onLoad((event) async {
|
||||||
await audioPlayerNotifier.load(
|
await audioPlayerNotifier.load(
|
||||||
event.data.tracks as List<SpotubeFullTrackObject>,
|
event.data.tracks.cast<SpotubeFullTrackObject>().toList(),
|
||||||
autoPlay: true,
|
autoPlay: true,
|
||||||
initialIndex: event.data.initialIndex ?? 0,
|
initialIndex: event.data.initialIndex ?? 0,
|
||||||
);
|
);
|
||||||
@ -186,7 +186,7 @@ class ServerConnectRoutes {
|
|||||||
});
|
});
|
||||||
|
|
||||||
event.onStop((event) async {
|
event.onStop((event) async {
|
||||||
await audioPlayer.stop();
|
await ref.read(audioPlayerProvider.notifier).stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
event.onNext((event) async {
|
event.onNext((event) async {
|
||||||
|
Loading…
Reference in New Issue
Block a user