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

@ -15,7 +15,7 @@
<input type="checkbox" id="chkRunAtStartup" name="chkRunAtStartup" />
<label for="chkRunAtStartup">Run server at startup</label>
<div id="windowsStartupDescription" class="fieldDescription warningFieldDescription" style="display: none;">
This will start the tray icon on windows startup. If you'd prefer to start the windows service instead, disable this and run the service from the windows control panel. Please note that you cannot run both at the same time, so you will need to exit the tray icon before starting the service.
This will start the tray icon on windows startup. To start the windows service, uncheck this and run the service from the windows control panel. Please note that you cannot run both at the same time, so you will need to exit the tray icon before starting the service.
</div>
</li>
<li>

View file

@ -47,6 +47,13 @@ body {
font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.ui-header .ui-btn-inner, .ui-footer .ui-btn-inner, .ui-mini .ui-btn-inner {
font-size: 13.5px;
}
.ui-li-desc {
font-size: 13px;
}
h1 {
font-family: 'Open Sans', Arial, Helvetica, sans-serif;
font-weight: 200;

View file

@ -1476,7 +1476,7 @@
var html = '';
if (item.Type != "Audio") {
if (item.Type != "Audio" && item.Type != "Season" && item.Type != "Series") {
html += LibraryBrowser.getItemProgressBarHtml(item);
}

View file

@ -762,7 +762,7 @@
return self.canPlayMediaType(item.MediaType);
};
self.getPlayUrl = function(item) {
self.getPlayUrl = function (item) {
if (item.GameSystem == "Nintendo" && item.MediaType == "Game" && item.ProviderIds.NesBox && item.ProviderIds.NesBoxRom) {
@ -1202,10 +1202,12 @@
}
};
self.queueItem = function (item) {
self.queueItems = function (items) {
self.playlist.push(item);
for (var i = 0, length = items.length; i < length; i++) {
self.playlist.push(items[i]);
}
};
self.queue = function (id) {
@ -1222,16 +1224,12 @@
}).done(function (result) {
for (var i = 0, length = result.Items.length; i < length; i++) {
self.queueItem(result.Items[i]);
}
self.queueItems(result.Items);
});
} else {
self.queueItem(item);
self.queueItems([item]);
}
});
@ -1248,11 +1246,7 @@
}).done(function (result) {
for (var i = 0, length = result.Items.length; i < length; i++) {
self.queueItem(result.Items[i]);
}
self.queueItems(result.Items);
});

View file

@ -804,7 +804,16 @@ var Dashboard = {
Ids: msg.Data.ItemIds.join(',')
}).done(function (result) {
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);
}
});