mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix remote control stopping playback
This commit is contained in:
parent
1f1475c2f1
commit
6c735c55a9
11 changed files with 84 additions and 60 deletions
|
@ -434,26 +434,26 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appS
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
Dashboard.getCurrentUser().then(function (user) {
|
||||
return Dashboard.getCurrentUser().then(function (user) {
|
||||
|
||||
if (options.items) {
|
||||
|
||||
translateItemsForPlayback(options.items, true).then(function (items) {
|
||||
return translateItemsForPlayback(options.items, true).then(function (items) {
|
||||
|
||||
self.playWithIntros(items, options, user);
|
||||
return self.playWithIntros(items, options, user);
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
self.getItemsForPlayback({
|
||||
return self.getItemsForPlayback({
|
||||
|
||||
Ids: options.ids.join(',')
|
||||
|
||||
}).then(function (result) {
|
||||
|
||||
translateItemsForPlayback(result.Items, true).then(function (items) {
|
||||
return translateItemsForPlayback(result.Items, true).then(function (items) {
|
||||
|
||||
self.playWithIntros(items, options, user);
|
||||
return self.playWithIntros(items, options, user);
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -489,6 +489,8 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appS
|
|||
});
|
||||
|
||||
});
|
||||
// Todo: rework above methods to use promises
|
||||
return Promise.resolve();
|
||||
};
|
||||
|
||||
function getOptimalMediaSource(mediaType, versions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue