1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
Jacob Weiss 2025-03-30 11:01:13 -04:00 committed by GitHub
commit ce32a506be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1936,6 +1936,15 @@ export class PlaybackManager {
}, queryOptions));
}
if (promise) {
return promise.then(function (result) {
if (firstItem.Type === 'AudioBook') {
options.startIndex = result.StartIndex;
}
return result ? result.Items : items;
});
}
return null;
}
@ -2319,6 +2328,10 @@ export class PlaybackManager {
}
function playInternal(item, playOptions, onPlaybackStartedFn, prevSource) {
if (item.Type === 'AudioBookFile') {
playOptions.startPositionTicks = item.UserData.PlaybackPositionTicks;
}
if (item.IsPlaceHolder) {
loading.hide();
showPlaybackInfoErrorMessage(self, 'PlaybackErrorPlaceHolder');
@ -3578,6 +3591,7 @@ export class PlaybackManager {
};
}
// Add a player to the list of players and associate callbacks
function initMediaPlayer(player) {
players.push(player);
players.sort(function (a, b) {