Skip to content

Commit a41512f

Browse files
committed
Update KeySystemPlayReady.js
Call CML's parseInitDataFromContentProtection
1 parent ad81972 commit a41512f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/streaming/protection/drm/KeySystemPlayReady.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@
3535
* @class
3636
* @implements KeySystem
3737
*/
38-
import CommonEncryption from '../CommonEncryption.js';
3938
import ProtectionConstants from '../../constants/ProtectionConstants.js';
4039
import FactoryMaker from '../../../core/FactoryMaker.js';
41-
40+
import { parseInitDataFromContentProtection } from '@svta/common-media-library/drm/common-encryption/parseInitDataFromContentProtection.js';
4241
const uuid = ProtectionConstants.PLAYREADY_UUID;
4342
const systemString = ProtectionConstants.PLAYREADY_KEYSTEM_STRING;
4443
const schemeIdURI = 'urn:uuid:' + uuid;
@@ -199,7 +198,7 @@ function KeySystemPlayReady(config) {
199198
}
200199
// Handle common encryption PSSH
201200
if ('pssh' in cpData && cpData.pssh) {
202-
return CommonEncryption.parseInitDataFromContentProtection(cpData, BASE64);
201+
return parseInitDataFromContentProtection(cpData, BASE64);
203202
}
204203
// Handle native MS PlayReady ContentProtection elements
205204
if ('pro' in cpData && cpData.pro) {

0 commit comments

Comments
 (0)