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:
parent
663b5e93a1
commit
dbf7337f7c
5 changed files with 28 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue