File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/streaming/protection/models Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ import KeySystemConfiguration from '../vo/KeySystemConfiguration.js';
4545import KeySystemAccess from '../vo/KeySystemAccess.js' ;
4646import ProtectionErrors from '../errors/ProtectionErrors.js' ;
4747import FactoryMaker from '../../../core/FactoryMaker.js' ;
48- import ProtectionConstants from '../../constants/ProtectionConstants.js' ;
48+
49+ // imports from common-media-library
50+ import { INITIALIZATION_DATA_TYPE } from '@svta/common-media-library/drm/common/const/INITIALIZATION_DATA_TYPE.js' ;
4951
5052function ProtectionModel_01b ( config ) {
5153
@@ -311,7 +313,7 @@ function ProtectionModel_01b(config) {
311313 switch ( event . type ) {
312314 case api . needkey :
313315 let initData = ArrayBuffer . isView ( event . initData ) ? event . initData . buffer : event . initData ;
314- eventBus . trigger ( events . NEED_KEY , { key : new NeedKey ( initData , ProtectionConstants . INITIALIZATION_DATA_TYPE_CENC ) } ) ;
316+ eventBus . trigger ( events . NEED_KEY , { key : new NeedKey ( initData , INITIALIZATION_DATA_TYPE . CENC ) } ) ;
315317 break ;
316318
317319 case api . keyerror :
You can’t perform that action at this time.
0 commit comments