mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
fix shuffle/instant mix
This commit is contained in:
parent
c925a314cf
commit
7323e865f2
@ -585,12 +585,23 @@
|
|||||||
|
|
||||||
self.shuffle = function (id) {
|
self.shuffle = function (id) {
|
||||||
|
|
||||||
|
// accept both id and item being passed in
|
||||||
|
if (id.Id) {
|
||||||
|
id = id.Id;
|
||||||
|
}
|
||||||
|
|
||||||
doWithPlaybackValidation(currentPlayer, function () {
|
doWithPlaybackValidation(currentPlayer, function () {
|
||||||
currentPlayer.shuffle(id);
|
currentPlayer.shuffle(id);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
self.instantMix = function (id) {
|
self.instantMix = function (id) {
|
||||||
|
|
||||||
|
// accept both id and item being passed in
|
||||||
|
if (id.Id) {
|
||||||
|
id = id.Id;
|
||||||
|
}
|
||||||
|
|
||||||
doWithPlaybackValidation(currentPlayer, function () {
|
doWithPlaybackValidation(currentPlayer, function () {
|
||||||
currentPlayer.instantMix(id);
|
currentPlayer.instantMix(id);
|
||||||
});
|
});
|
||||||
|
@ -2039,6 +2039,9 @@ var AppInfo = {};
|
|||||||
},
|
},
|
||||||
instantMix: function (item) {
|
instantMix: function (item) {
|
||||||
return MediaController.instantMix(item);
|
return MediaController.instantMix(item);
|
||||||
|
},
|
||||||
|
shuffle: function (item) {
|
||||||
|
return MediaController.shuffle(item);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user