fix shuffle/instant mix

This commit is contained in:
Luke Pulverenti 2016-07-17 16:38:05 -04:00
parent c925a314cf
commit 7323e865f2
2 changed files with 14 additions and 0 deletions

View File

@ -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);
}); });

View File

@ -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);
} }
}; };
}); });