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 30
30
*/
31
31
import FactoryMaker from '../../core/FactoryMaker.js' ;
32
32
import Constants from '../constants/Constants.js' ;
33
- import ProtectionConstants from '../constants/ProtectionConstants.js' ;
34
33
import ObjectUtils from './ObjectUtils.js' ;
35
34
import Debug from '../../core/Debug.js' ;
36
35
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
+
37
40
export function supportsMediaSource ( ) {
38
41
let hasManagedMediaSource = ( 'ManagedMediaSource' in window )
39
42
let hasWebKit = ( 'WebKitMediaSource' in window ) ;
@@ -292,8 +295,8 @@ function Capabilities() {
292
295
}
293
296
294
297
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 ;
297
300
}
298
301
const protData = keySystemMetadata . protData
299
302
const audioRobustness = ( protData && protData . audioRobustness && protData . audioRobustness . length > 0 ) ? protData . audioRobustness : robustnessLevel ;
You can’t perform that action at this time.
0 commit comments