Skip to content

Commit

Permalink
fix: Allow reference mimeType change in StreamingEngine (#7061)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jul 18, 2024
1 parent dd06954 commit bf6632e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/media/streaming_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1903,8 +1903,10 @@ shaka.media.StreamingEngine = class {
reference.startTime <= appendWindowEnd,
logPrefix + ' segment should start before append window end');

const codecs = MimeUtils.getCodecBase(mediaState.stream.codecs);
const mimeType = MimeUtils.getBasicType(mediaState.stream.mimeType);
const codecs = MimeUtils.getCodecBase(
reference.codecs || mediaState.stream.codecs);
const mimeType = MimeUtils.getBasicType(
reference.mimeType || mediaState.stream.mimeType);
const timestampOffset = reference.timestampOffset;
if (timestampOffset != mediaState.lastTimestampOffset ||
appendWindowStart != mediaState.lastAppendWindowStart ||
Expand Down

0 comments on commit bf6632e

Please sign in to comment.