Skip to content

Commit

Permalink
Merge pull request #2818 from epiclabsDASH/fix_periods_eme
Browse files Browse the repository at this point in the history
Force MediaSource reset when there are EME config changes
  • Loading branch information
epiclabsDASH authored Oct 17, 2018
2 parents 9b71795 + ee55fdf commit 79d785d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/streaming/Stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,13 @@ function Stream(config) {
return !newAdaptation && !currentAdaptation;
}

// If any of the periods requires EME, we can't do smooth transition
if ((newAdaptation.ContentProtection && !currentAdaptation.ContentProtection) ||
(!newAdaptation.ContentProtection && currentAdaptation.ContentProtection)) {
return false;
}


const sameMimeType = newAdaptation && currentAdaptation && newAdaptation.mimeType === currentAdaptation.mimeType;
const oldCodecs = currentAdaptation.Representation_asArray.map((representation) => {
return representation.codecs;
Expand Down

0 comments on commit 79d785d

Please sign in to comment.