Skip to content

Commit

Permalink
Fix drm checking for single representation in adaptation (#4140)
Browse files Browse the repository at this point in the history
  • Loading branch information
minhui-foxtel committed Mar 20, 2023
1 parent e2f0586 commit 6e640ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/Stream.js
Expand Up @@ -983,7 +983,7 @@ function Stream(config) {
}

// If the current period is unencrypted and the upcoming one is encrypted we need to reset sourcebuffers.
return !!(adaptation.ContentProtection || (adaptation.Representation && adaptation.Representation.length > 0 && adaptation.Representation[0].ContentProtection));
return !!(adaptation.ContentProtection || (adaptation.Representation_asArray && adaptation.Representation_asArray.length > 0 && adaptation.Representation_asArray[0].ContentProtection));
}

function compareCodecs(newStream, type, previousStream = null) {
Expand Down

0 comments on commit 6e640ae

Please sign in to comment.