mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix: check if primary supports secondary track
This commit is contained in:
parent
3c0ace3386
commit
50eb5f277d
1 changed files with 5 additions and 1 deletions
|
@ -3017,7 +3017,11 @@ class PlaybackManager {
|
||||||
if (mediaSource) {
|
if (mediaSource) {
|
||||||
playerData.audioStreamIndex = mediaSource.DefaultAudioStreamIndex;
|
playerData.audioStreamIndex = mediaSource.DefaultAudioStreamIndex;
|
||||||
playerData.subtitleStreamIndex = mediaSource.DefaultSubtitleStreamIndex;
|
playerData.subtitleStreamIndex = mediaSource.DefaultSubtitleStreamIndex;
|
||||||
playerData.secondarySubtitleStreamIndex = mediaSource.DefaultSecondarySubtitleStreamIndex;
|
if (self.trackHasSecondarySubtitleSupport(mediaSource.MediaStreams[mediaSource.DefaultSubtitleStreamIndex])) {
|
||||||
|
playerData.secondarySubtitleStreamIndex = mediaSource.DefaultSecondarySubtitleStreamIndex;
|
||||||
|
} else {
|
||||||
|
playerData.secondarySubtitleStreamIndex = -1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
playerData.audioStreamIndex = null;
|
playerData.audioStreamIndex = null;
|
||||||
playerData.subtitleStreamIndex = null;
|
playerData.subtitleStreamIndex = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue