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

set secondary sub index after player succeeds

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
Ivan Schurawel 2023-02-09 19:39:52 -05:00
parent e5c05b4ebc
commit 5a217ca084

View file

@ -1598,10 +1598,9 @@ class PlaybackManager {
return;
}
getPlayerData(player).secondarySubtitleStreamIndex = index;
try {
player.setSecondarySubtitleStreamIndex(index);
getPlayerData(player).secondarySubtitleStreamIndex = index;
} catch (e) {
console.error('[playbackmanager] AutoSet - Failed to set secondary track:', e);
}