1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

support remote queuing to web client

This commit is contained in:
Luke Pulverenti 2013-11-30 01:07:45 -05:00
parent 663b5e93a1
commit dbf7337f7c
5 changed files with 28 additions and 18 deletions

View file

@ -804,7 +804,16 @@ var Dashboard = {
Ids: msg.Data.ItemIds.join(',')
}).done(function (result) {
MediaPlayer.play(result.Items, msg.Data.StartPositionTicks);
if (msg.Data.PlayCommand == "PlayNext") {
MediaPlayer.queueItems(result.Items);
}
else if (msg.Data.PlayCommand == "PlayLast") {
MediaPlayer.queueItems(result.Items);
}
else {
MediaPlayer.play(result.Items, msg.Data.StartPositionTicks);
}
});