Skip to content

Commit d20f23d

Browse files
committed
Update KeySystemWidevine.js
1 parent 34c87bc commit d20f23d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/streaming/protection/drm/KeySystemWidevine.js

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

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

43-
const uuid = ProtectionConstants.WIDEVINE_UUID;
44-
const systemString = ProtectionConstants.WIDEVINE_KEYSTEM_STRING;
42+
// imports from common-media-library
43+
import { WIDEVINE_UUID } from '@svta/common-media-library/drm/common/const/WIDEVINE_UUID.js';
44+
import { WIDEVINE_KEY_SYSTEM } from '@svta/common-media-library/drm/common/const/WIDEVINE_KEY_SYSTEM.js';
45+
46+
const uuid = WIDEVINE_UUID;
47+
const systemString = WIDEVINE_KEY_SYSTEM;
4548
const schemeIdURI = 'urn:uuid:' + uuid;
4649

4750
function KeySystemWidevine(config) {

0 commit comments

Comments
 (0)