@@ -1104,7 +1104,7 @@ export const enum DecrypterAesMode {
11041104export type DRMSystemConfiguration = {
11051105 licenseUrl: string ;
11061106 serverCertificateUrl? : string ;
1107- generateRequest? : (this : Hls , initDataType : string , initData : ArrayBuffer | null , keyContext : MediaKeySessionContext ) => {
1107+ generateRequest? : (this : Hls , initDataType : string , initData : ArrayBuffer | null , keyContext : MediaKeySessionContextAndLevelKey ) => {
11081108 initDataType: string ;
11091109 initData: ArrayBuffer | null ;
11101110 } | undefined | never ;
@@ -1172,6 +1172,8 @@ export class EMEController extends Logger implements ComponentAPI {
11721172 // (undocumented)
11731173 destroy(): void ;
11741174 // (undocumented)
1175+ getKeyStatus(decryptdata : LevelKey ): MediaKeyStatus | undefined ;
1176+ // (undocumented)
11751177 getKeySystemAccess(keySystemsToAttempt : KeySystems []): Promise <void >;
11761178 // (undocumented)
11771179 getSelectedKeySystemFormats(): KeySystemFormats [];
@@ -1187,8 +1189,8 @@ export class EMEController extends Logger implements ComponentAPI {
11871189//
11881190// @public (undocumented)
11891191export type EMEControllerConfig = {
1190- licenseXhrSetup? : (this : Hls , xhr : XMLHttpRequest , url : string , keyContext : MediaKeySessionContext , licenseChallenge : Uint8Array ) => void | Uint8Array | Promise <Uint8Array | void >;
1191- licenseResponseCallback? : (this : Hls , xhr : XMLHttpRequest , url : string , keyContext : MediaKeySessionContext ) => ArrayBuffer ;
1192+ licenseXhrSetup? : (this : Hls , xhr : XMLHttpRequest , url : string , keyContext : MediaKeySessionContextAndLevelKey , licenseChallenge : Uint8Array ) => void | Uint8Array | Promise <Uint8Array | void >;
1193+ licenseResponseCallback? : (this : Hls , xhr : XMLHttpRequest , url : string , keyContext : MediaKeySessionContextAndLevelKey ) => ArrayBuffer ;
11921194 emeEnabled: boolean ;
11931195 widevineLicenseUrl? : string ;
11941196 drmSystems: DRMSystemsConfiguration | undefined ;
@@ -3381,6 +3383,8 @@ export class LevelKey implements DecryptData {
33813383 // (undocumented)
33823384 pssh: Uint8Array <ArrayBuffer > | null ;
33833385 // (undocumented)
3386+ static setKeyIdForUri(uri : string , keyId : Uint8Array <ArrayBuffer >): void ;
3387+ // (undocumented)
33843388 readonly uri: string ;
33853389}
33863390
@@ -3992,12 +3996,14 @@ export type MediaKeyFunc = (keySystem: KeySystems, supportedConfigurations: Medi
39923996// @public (undocumented)
39933997export interface MediaKeySessionContext {
39943998 // (undocumented)
3995- decryptdata : LevelKey ;
3996- // (undocumented)
3997- keyStatus : MediaKeyStatus ;
3999+ keyStatuses : {
4000+ [ keyId : string ] : MediaKeyStatus ;
4001+ } ;
39984002 // (undocumented)
39994003 keySystem: KeySystems ;
40004004 // (undocumented)
4005+ levelKeys: LevelKey [];
4006+ // (undocumented)
40014007 licenseXhr? : XMLHttpRequest ;
40024008 // (undocumented)
40034009 mediaKeys: MediaKeys ;
@@ -5006,6 +5012,10 @@ export class XhrLoader implements Loader<LoaderContext> {
50065012 stats: LoaderStats ;
50075013}
50085014
5015+ // Warnings were encountered during analysis:
5016+ //
5017+ // src/config.ts:91:3 - (ae-forgotten-export) The symbol "MediaKeySessionContextAndLevelKey" needs to be exported by the entry point hls.d.ts
5018+
50095019// (No @packageDocumentation comment for this package)
50105020
50115021```
0 commit comments