Skip to content

Commit 258a83e

Browse files
committed
Update KeySystemWidevine.js
Call CML's parseInitDataFromContentProtection
1 parent bac4047 commit 258a83e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/streaming/protection/drm/KeySystemWidevine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
* @implements MediaPlayer.dependencies.protection.KeySystem
3737
*/
3838

39-
import CommonEncryption from '../CommonEncryption.js';
4039
import ProtectionConstants from '../../constants/ProtectionConstants.js';
4140
import FactoryMaker from '../../../core/FactoryMaker.js';
41+
import { parseInitDataFromContentProtection } from '@svta/common-media-library/drm/common-encryption/parseInitDataFromContentProtection.js';
4242

4343
const uuid = ProtectionConstants.WIDEVINE_UUID;
4444
const systemString = ProtectionConstants.WIDEVINE_KEYSTEM_STRING;
@@ -51,7 +51,7 @@ function KeySystemWidevine(config) {
5151
const BASE64 = config.BASE64;
5252

5353
function getInitData(cp) {
54-
return CommonEncryption.parseInitDataFromContentProtection(cp, BASE64);
54+
return parseInitDataFromContentProtection(cp, BASE64);
5555
}
5656

5757
function getRequestHeadersFromMessage( /*message*/ ) {

0 commit comments

Comments
 (0)