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:
parent
1e3bc96dab
commit
9732babd25
16 changed files with 84 additions and 42 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue