File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/streaming/protection/servers Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 3636 * @class
3737 */
3838
39- import ProtectionConstants from '../../constants/ProtectionConstants.js' ;
4039import 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+
4245function 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 ;
You can’t perform that action at this time.
0 commit comments