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

update video osd

This commit is contained in:
Luke Pulverenti 2017-01-06 14:37:57 -05:00
parent 1e3bc96dab
commit 9732babd25
16 changed files with 84 additions and 42 deletions

View file

@ -60,17 +60,26 @@
self.play = function (options) {
return sendPlayCommand(options, 'PlayNow');
var playOptions = {};
playOptions.ids = options.ids || options.items.map(function(i) {
return i.Id;
});
if (options.startPositionTicks) {
playOptions.startPositionTicks = options.startPositionTicks;
}
return sendPlayCommand(playOptions, 'PlayNow');
};
self.shuffle = function (id) {
self.shuffle = function (item) {
sendPlayCommand({ ids: [id] }, 'PlayShuffle');
sendPlayCommand({ ids: [item.Id] }, 'PlayShuffle');
};
self.instantMix = function (id) {
self.instantMix = function (item) {
sendPlayCommand({ ids: [id] }, 'PlayInstantMix');
sendPlayCommand({ ids: [item.Id] }, 'PlayInstantMix');
};
self.queue = function (options) {