File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 3030 */
3131import FactoryMaker from '../../core/FactoryMaker.js' ;
3232import Constants from '../constants/Constants.js' ;
33- import ProtectionConstants from '../constants/ProtectionConstants.js' ;
3433import ObjectUtils from './ObjectUtils.js' ;
3534import Debug from '../../core/Debug.js' ;
3635
36+ // imports from common-media-library
37+ import { SW_SECURE_CRYPTO } from '@svta/common-media-library/drm/common/const/SW_SECURE_CRYPTO.js' ;
38+ import { WIDEVINE_KEY_SYSTEM } from '@svta/common-media-library/drm/common/const/WIDEVINE_KEY_SYSTEM.js' ;
39+
3740export function supportsMediaSource ( ) {
3841 let hasManagedMediaSource = ( 'ManagedMediaSource' in window )
3942 let hasWebKit = ( 'WebKitMediaSource' in window ) ;
@@ -292,8 +295,8 @@ function Capabilities() {
292295 }
293296
294297 let robustnessLevel = ''
295- if ( keySystemMetadata . ks . systemString === ProtectionConstants . WIDEVINE_KEYSTEM_STRING ) {
296- robustnessLevel = ProtectionConstants . ROBUSTNESS_STRINGS . WIDEVINE . SW_SECURE_CRYPTO ;
298+ if ( keySystemMetadata . ks . systemString === WIDEVINE_KEY_SYSTEM ) {
299+ robustnessLevel = SW_SECURE_CRYPTO ;
297300 }
298301 const protData = keySystemMetadata . protData
299302 const audioRobustness = ( protData && protData . audioRobustness && protData . audioRobustness . length > 0 ) ? protData . audioRobustness : robustnessLevel ;
You can’t perform that action at this time.
0 commit comments