mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Avoid async rendering of MediaSources tracks to prevent content jump
This commit is contained in:
parent
a27eae98e5
commit
1691827cee
1 changed files with 21 additions and 21 deletions
|
@ -141,7 +141,7 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti
|
|||
return;
|
||||
}
|
||||
|
||||
playbackManager.getPlaybackMediaSources(item).then(function (mediaSources) {
|
||||
var mediaSources = item.MediaSources;
|
||||
instance._currentPlaybackMediaSources = mediaSources;
|
||||
page.querySelector('.trackSelections').classList.remove('hide');
|
||||
select.setLabel(globalize.translate('LabelVersion'));
|
||||
|
@ -163,7 +163,7 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti
|
|||
renderAudioSelections(page, mediaSources);
|
||||
renderSubtitleSelections(page, mediaSources);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function renderVideoSelections(page, mediaSources) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue