File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/streaming/protection/drm Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3131
3232import KeyPair from '../vo/KeyPair.js' ;
3333import ClearKeyKeySet from '../vo/ClearKeyKeySet.js' ;
34- import CommonEncryption from '../CommonEncryption.js' ;
3534import ProtectionConstants from '../../constants/ProtectionConstants.js' ;
3635import FactoryMaker from '../../../core/FactoryMaker.js' ;
3736
3837const uuid = ProtectionConstants . CLEARKEY_UUID ;
3938const systemString = ProtectionConstants . CLEARKEY_KEYSTEM_STRING ;
4039const schemeIdURI = 'urn:uuid:' + uuid ;
4140
41+ import { parseInitDataFromContentProtection } from '@svta/common-media-library/drm/common-encryption/parseInitDataFromContentProtection.js' ;
42+
4243function KeySystemClearKey ( config ) {
4344
4445 config = config || { } ;
@@ -78,7 +79,7 @@ function KeySystemClearKey(config) {
7879
7980 function getInitData ( cp , cencContentProtection ) {
8081 try {
81- let initData = CommonEncryption . parseInitDataFromContentProtection ( cp , BASE64 ) ;
82+ let initData = parseInitDataFromContentProtection ( cp , BASE64 ) ;
8283
8384 if ( ! initData && cencContentProtection ) {
8485 const cencDefaultKid = cencDefaultKidToBase64Representation ( cencContentProtection . cencDefaultKid ) ;
You can’t perform that action at this time.
0 commit comments