Skip to content

Commit

Permalink
fix: Add more info in getVariantTracks for muxed streams (#7181)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Aug 20, 2024
1 parent e9e54f6 commit bb2f99d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/util/stream_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,13 @@ shaka.util.StreamUtils = class {
track.hdr = video.hdr || null;
track.colorGamut = video.colorGamut || null;
track.videoLayout = video.videoLayout || null;

if (videoCodec.includes(',')) {
track.channelsCount = video.channelsCount;
track.audioSamplingRate = video.audioSamplingRate;
track.spatialAudio = video.spatialAudio;
track.originalLanguage = video.originalLanguage;
}
}

if (audio) {
Expand Down

0 comments on commit bb2f99d

Please sign in to comment.