back button & media keys improvement
This commit is contained in:
parent
99425e65c3
commit
bb8e22cf93
3 changed files with 19 additions and 2 deletions
|
@ -136,6 +136,9 @@ const MusicKitInterop = {
|
|||
},
|
||||
|
||||
next: () => {
|
||||
try {
|
||||
app.prevButtonBackIndicator = false;
|
||||
} catch (e) { }
|
||||
if (MusicKit.getInstance().queue.nextPlayableItemIndex != -1 && MusicKit.getInstance().queue.nextPlayableItemIndex != null)
|
||||
MusicKit.getInstance().changeToMediaAtIndex(MusicKit.getInstance().queue.nextPlayableItemIndex);
|
||||
// MusicKit.getInstance().skipToNextItem().then(r => console.log(`[MusicKitInterop.next] Skipping to Next ${r}`));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue