mitigate skipping on some library songs
This commit is contained in:
parent
5c56dfbcc3
commit
317a56e439
6 changed files with 13 additions and 5 deletions
|
@ -127,7 +127,9 @@ const MusicKitInterop = {
|
|||
},
|
||||
|
||||
next: () => {
|
||||
MusicKit.getInstance().skipToNextItem().then(r => console.log(`[MusicKitInterop.next] Skipping to Next ${r}`));
|
||||
if (MusicKit.getInstance().queue.nextPlayableItemIndex != -1)
|
||||
MusicKit.getInstance().changeToMediaAtIndex(MusicKit.getInstance().queue.nextPlayableItemIndex);
|
||||
// MusicKit.getInstance().skipToNextItem().then(r => console.log(`[MusicKitInterop.next] Skipping to Next ${r}`));
|
||||
},
|
||||
|
||||
previous: () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue