Skip to content

Commit dc8f868

Browse files
committed
Update DRMToday.js
1 parent 882ab9b commit dc8f868

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/streaming/protection/servers/DRMToday.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,19 @@
3636
* @class
3737
*/
3838

39-
import ProtectionConstants from '../../constants/ProtectionConstants.js';
4039
import FactoryMaker from '../../../core/FactoryMaker.js';
4140

41+
// imports from common-media-library
42+
import { WIDEVINE_KEY_SYSTEM } from '@svta/common-media-library/drm/common/const/WIDEVINE_KEY_SYSTEM.js';
43+
import { PLAYREADY_KEY_SYSTEM } from '@svta/common-media-library/drm/common/const/PLAYREADY_KEY_SYSTEM.js';
44+
4245
function DRMToday(config) {
4346

4447
config = config || {};
4548
const BASE64 = config.BASE64;
4649

4750
const keySystems = {};
48-
keySystems[ProtectionConstants.WIDEVINE_KEYSTEM_STRING] = {
51+
keySystems[WIDEVINE_KEY_SYSTEM] = {
4952
responseType: 'json',
5053
getLicenseMessage: function (response) {
5154
return BASE64.decodeArray(response.license);
@@ -54,7 +57,7 @@ function DRMToday(config) {
5457
return response;
5558
}
5659
};
57-
keySystems[ProtectionConstants.PLAYREADY_KEYSTEM_STRING] = {
60+
keySystems[PLAYREADY_KEY_SYSTEM] = {
5861
responseType: 'arraybuffer',
5962
getLicenseMessage: function (response) {
6063
return response;

0 commit comments

Comments
 (0)