Skip to content

Commit bac4047

Browse files
committed
Update KeySystemW3CClearKey.js
Call CML's parseInitDataFromContentProtection
1 parent a41512f commit bac4047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/streaming/protection/drm/KeySystemW3CClearKey.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131

3232
import KeyPair from '../vo/KeyPair.js';
3333
import ClearKeyKeySet from '../vo/ClearKeyKeySet.js';
34-
import CommonEncryption from '../CommonEncryption.js';
3534
import ProtectionConstants from '../../constants/ProtectionConstants.js';
3635
import FactoryMaker from '../../../core/FactoryMaker.js';
36+
import { parseInitDataFromContentProtection } from '@svta/common-media-library/drm/common-encryption/parseInitDataFromContentProtection.js';
3737

3838
const uuid = ProtectionConstants.W3C_CLEARKEY_UUID;
3939
const systemString = ProtectionConstants.CLEARKEY_KEYSTEM_STRING;
@@ -77,7 +77,7 @@ function KeySystemW3CClearKey(config) {
7777
}
7878

7979
function getInitData(cp) {
80-
return CommonEncryption.parseInitDataFromContentProtection(cp, BASE64);
80+
return parseInitDataFromContentProtection(cp, BASE64);
8181
}
8282

8383
function getRequestHeadersFromMessage(/*message*/) {

0 commit comments

Comments
 (0)