Skip to content

Commit

Permalink
fix getkeyidset
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed Dec 12, 2023
1 parent 0c7a363 commit f0cbf43
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/dash-playlist-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,14 +953,9 @@ export default class DashPlaylistLoader extends EventTarget {
for (const keysystem in playlist.contentProtection) {
const defaultKID = playlist.contentProtection[keysystem].attributes['cenc:default_KID'];

if (!defaultKID) {
return;
}
// DASH keyIds are separated by dashes.
const keyId = defaultKID.replace(/-/g, '');

if (keyId) {
keyIds.add(keyId);
if (defaultKID) {
// DASH keyIds are separated by dashes.
keyIds.add(defaultKID.replace(/-/g, ''));
}
}
return keyIds;
Expand Down

0 comments on commit f0cbf43

Please sign in to comment.