@@ -313,6 +313,10 @@ export class DateRange {
313
313
export type DRMSystemOptions = {
314
314
audioRobustness? : string ;
315
315
videoRobustness? : string ;
316
+ persistentState? : MediaKeysRequirement ;
317
+ distinctiveIdentifier? : MediaKeysRequirement ;
318
+ sessionTypes? : string [];
319
+ sessionType? : string ;
316
320
};
317
321
318
322
// Warning: (ae-missing-release-tag) "ElementaryStreamInfo" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -352,9 +356,10 @@ export enum ElementaryStreamTypes {
352
356
//
353
357
// @public (undocumented)
354
358
export type EMEControllerConfig = {
355
- licenseXhrSetup? : (xhr : XMLHttpRequest , url : string , keySystem : KeySystems ) => void | Promise <void >;
356
- licenseResponseCallback? : (xhr : XMLHttpRequest , url : string , keySystem : KeySystems ) => ArrayBuffer ;
359
+ licenseXhrSetup? : (this : Hls , xhr : XMLHttpRequest , url : string , keyContext : MediaKeySessionContext , licenseChallenge : Uint8Array ) => void | Promise <Uint8Array | void >;
360
+ licenseResponseCallback? : (this : Hls , xhr : XMLHttpRequest , url : string , keyContext : MediaKeySessionContext ) => ArrayBuffer ;
357
361
emeEnabled: boolean ;
362
+ useEmeEncryptedEvent: boolean ;
358
363
widevineLicenseUrl? : string ;
359
364
drmSystems: DRMSystemsConfiguration ;
360
365
drmSystemOptions: DRMSystemOptions ;
@@ -464,6 +469,10 @@ export enum ErrorDetails {
464
469
// (undocumented)
465
470
KEY_SYSTEM_SESSION_UPDATE_FAILED = " keySystemSessionUpdateFailed" ,
466
471
// (undocumented)
472
+ KEY_SYSTEM_STATUS_INTERNAL_ERROR = " keySystemStatusInternalError" ,
473
+ // (undocumented)
474
+ KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED = " keySystemStatusOutputRestricted" ,
475
+ // (undocumented)
467
476
LEVEL_EMPTY_ERROR = " levelEmptyError" ,
468
477
// (undocumented)
469
478
LEVEL_LOAD_ERROR = " levelLoadError" ,
@@ -740,7 +749,6 @@ export class Fragment extends BaseSegment {
740
749
cc: number ;
741
750
// (undocumented)
742
751
clearElementaryStreamInfo(): void ;
743
- createInitializationVector(segmentNumber : number ): Uint8Array ;
744
752
// (undocumented)
745
753
data? : Uint8Array ;
746
754
// (undocumented)
@@ -761,12 +769,16 @@ export class Fragment extends BaseSegment {
761
769
endPTS? : number ;
762
770
// (undocumented)
763
771
initSegment: Fragment | null ;
772
+ // Warning: (ae-forgotten-export) The symbol "KeyLoaderContext" needs to be exported by the entry point hls.d.ts
773
+ //
764
774
// (undocumented)
765
775
keyLoader: Loader <KeyLoaderContext > | null ;
766
776
// (undocumented)
767
777
level: number ;
768
778
// (undocumented)
769
- levelkey? : LevelKey ;
779
+ levelkeys? : {
780
+ [key : string ]: LevelKey ;
781
+ };
770
782
// (undocumented)
771
783
loader: Loader <FragmentLoaderContext > | null ;
772
784
// (undocumented)
@@ -777,10 +789,11 @@ export class Fragment extends BaseSegment {
777
789
programDateTime: number | null ;
778
790
// (undocumented)
779
791
rawProgramDateTime: string | null ;
780
- setDecryptDataFromLevelKey(levelkey : LevelKey , segmentNumber : number ): LevelKey ;
781
792
// (undocumented)
782
793
setElementaryStreamInfo(type : ElementaryStreamTypes , startPTS : number , endPTS : number , startDTS : number , endDTS : number , partial ? : boolean ): void ;
783
794
// (undocumented)
795
+ setKeyFormat(keyFormat : KeySystemFormats ): void ;
796
+ // (undocumented)
784
797
sn: number | ' initSegment' ;
785
798
// (undocumented)
786
799
start: number ;
@@ -894,7 +907,7 @@ class Hls implements HlsEventEmitter {
894
907
// (undocumented)
895
908
readonly config: HlsConfig ;
896
909
// (undocumented)
897
- createController(ControllerClass : any , fragmentTracker : any , components : any ): any ;
910
+ createController(ControllerClass : any , components : any ): any ;
898
911
get currentLevel(): number ;
899
912
// Warning: (ae-setter-with-docs) The doc comment for the property "currentLevel" must appear on the getter, not the setter.
900
913
set currentLevel(newLevel : number );
@@ -1222,26 +1235,40 @@ export interface InitPTSFoundData {
1222
1235
export interface KeyLoadedData {
1223
1236
// (undocumented)
1224
1237
frag: Fragment ;
1238
+ // Warning: (ae-forgotten-export) The symbol "KeyLoaderInfo" needs to be exported by the entry point hls.d.ts
1239
+ //
1240
+ // (undocumented)
1241
+ keyInfo: KeyLoaderInfo ;
1225
1242
}
1226
1243
1227
- // Warning: (ae-missing-release-tag) "KeyLoaderContext " is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1244
+ // Warning: (ae-missing-release-tag) "KeyLoadingData " is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1228
1245
//
1229
1246
// @public (undocumented)
1230
- export interface KeyLoaderContext extends FragmentLoaderContext {
1247
+ export interface KeyLoadingData {
1248
+ // (undocumented)
1249
+ frag: Fragment ;
1231
1250
}
1232
1251
1233
- // Warning: (ae-missing-release-tag) "KeyLoadingData " is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1252
+ // Warning: (ae-missing-release-tag) "KeySystemFormats " is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1234
1253
//
1235
1254
// @public (undocumented)
1236
- export interface KeyLoadingData {
1255
+ export enum KeySystemFormats {
1237
1256
// (undocumented)
1238
- frag: Fragment ;
1257
+ CLEARKEY = " org.w3.clearkey" ,
1258
+ // (undocumented)
1259
+ FAIRPLAY = " com.apple.streamingkeydelivery" ,
1260
+ // (undocumented)
1261
+ PLAYREADY = " com.microsoft.playready" ,
1262
+ // (undocumented)
1263
+ WIDEVINE = " urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"
1239
1264
}
1240
1265
1241
1266
// Warning: (ae-missing-release-tag) "KeySystems" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1242
1267
//
1243
1268
// @public (undocumented)
1244
1269
export enum KeySystems {
1270
+ // (undocumented)
1271
+ CLEARKEY = " org.w3.clearkey" ,
1245
1272
// (undocumented)
1246
1273
FAIRPLAY = " com.apple.fps" ,
1247
1274
// (undocumented)
@@ -1478,24 +1505,31 @@ export class LevelDetails {
1478
1505
//
1479
1506
// @public (undocumented)
1480
1507
export class LevelKey {
1508
+ constructor (method : string , uri : string , format : string , formatversions ? : number [], iv ? : Uint8Array | null );
1509
+ // (undocumented)
1510
+ static clearKeyUriToKeyIdMap(): void ;
1511
+ // (undocumented)
1512
+ get encrypted(): boolean | " " ;
1481
1513
// (undocumented)
1482
- static fromURI( uri : string ): LevelKey ;
1514
+ getDecryptData( sn : number | ' initSegment ' ): LevelKey | null ;
1483
1515
// (undocumented)
1484
- static fromURL( baseUrl : string , relativeUrl : string ) : LevelKey ;
1516
+ get isCommonEncryption() : boolean | " " ;
1485
1517
// (undocumented)
1486
1518
iv: Uint8Array | null ;
1487
1519
// (undocumented)
1488
1520
key: Uint8Array | null ;
1489
1521
// (undocumented)
1490
- keyFormat: string | null ;
1522
+ keyFormat: string ;
1491
1523
// (undocumented)
1492
- keyFormatVersions: string | null ;
1524
+ keyFormatVersions: number [] ;
1493
1525
// (undocumented)
1494
- keyID : string | null ;
1526
+ keyId : Uint8Array | null ;
1495
1527
// (undocumented)
1496
- method: string | null ;
1528
+ method: string ;
1497
1529
// (undocumented)
1498
- get uri(): string | null ;
1530
+ pssh: Uint8Array | null ;
1531
+ // (undocumented)
1532
+ get uri(): string ;
1499
1533
}
1500
1534
1501
1535
// Warning: (ae-missing-release-tag) "LevelLoadedData" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -2237,19 +2271,20 @@ export interface UserdataSample {
2237
2271
2238
2272
// Warnings were encountered during analysis:
2239
2273
//
2240
- // src/config.ts:84:3 - (ae-forgotten-export) The symbol "DRMSystemsConfiguration" needs to be exported by the entry point hls.d.ts
2241
- // src/config.ts:187:3 - (ae-forgotten-export) The symbol "ILogger" needs to be exported by the entry point hls.d.ts
2242
- // src/config.ts:197:3 - (ae-forgotten-export) The symbol "AudioStreamController" needs to be exported by the entry point hls.d.ts
2243
- // src/config.ts:198:3 - (ae-forgotten-export) The symbol "AudioTrackController" needs to be exported by the entry point hls.d.ts
2244
- // src/config.ts:200:3 - (ae-forgotten-export) The symbol "SubtitleStreamController" needs to be exported by the entry point hls.d.ts
2245
- // src/config.ts:201:3 - (ae-forgotten-export) The symbol "SubtitleTrackController" needs to be exported by the entry point hls.d.ts
2246
- // src/config.ts:202:3 - (ae-forgotten-export) The symbol "TimelineController" needs to be exported by the entry point hls.d.ts
2247
- // src/config.ts:204:3 - (ae-forgotten-export) The symbol "EMEController" needs to be exported by the entry point hls.d.ts
2248
- // src/config.ts:207:3 - (ae-forgotten-export) The symbol "CMCDController" needs to be exported by the entry point hls.d.ts
2249
- // src/config.ts:209:3 - (ae-forgotten-export) The symbol "AbrController" needs to be exported by the entry point hls.d.ts
2250
- // src/config.ts:210:3 - (ae-forgotten-export) The symbol "BufferController" needs to be exported by the entry point hls.d.ts
2251
- // src/config.ts:211:3 - (ae-forgotten-export) The symbol "CapLevelController" needs to be exported by the entry point hls.d.ts
2252
- // src/config.ts:212:3 - (ae-forgotten-export) The symbol "FPSController" needs to be exported by the entry point hls.d.ts
2274
+ // src/config.ts:79:3 - (ae-forgotten-export) The symbol "MediaKeySessionContext" needs to be exported by the entry point hls.d.ts
2275
+ // src/config.ts:95:3 - (ae-forgotten-export) The symbol "DRMSystemsConfiguration" needs to be exported by the entry point hls.d.ts
2276
+ // src/config.ts:198:3 - (ae-forgotten-export) The symbol "ILogger" needs to be exported by the entry point hls.d.ts
2277
+ // src/config.ts:208:3 - (ae-forgotten-export) The symbol "AudioStreamController" needs to be exported by the entry point hls.d.ts
2278
+ // src/config.ts:209:3 - (ae-forgotten-export) The symbol "AudioTrackController" needs to be exported by the entry point hls.d.ts
2279
+ // src/config.ts:211:3 - (ae-forgotten-export) The symbol "SubtitleStreamController" needs to be exported by the entry point hls.d.ts
2280
+ // src/config.ts:212:3 - (ae-forgotten-export) The symbol "SubtitleTrackController" needs to be exported by the entry point hls.d.ts
2281
+ // src/config.ts:213:3 - (ae-forgotten-export) The symbol "TimelineController" needs to be exported by the entry point hls.d.ts
2282
+ // src/config.ts:215:3 - (ae-forgotten-export) The symbol "EMEController" needs to be exported by the entry point hls.d.ts
2283
+ // src/config.ts:218:3 - (ae-forgotten-export) The symbol "CMCDController" needs to be exported by the entry point hls.d.ts
2284
+ // src/config.ts:220:3 - (ae-forgotten-export) The symbol "AbrController" needs to be exported by the entry point hls.d.ts
2285
+ // src/config.ts:221:3 - (ae-forgotten-export) The symbol "BufferController" needs to be exported by the entry point hls.d.ts
2286
+ // src/config.ts:222:3 - (ae-forgotten-export) The symbol "CapLevelController" needs to be exported by the entry point hls.d.ts
2287
+ // src/config.ts:223:3 - (ae-forgotten-export) The symbol "FPSController" needs to be exported by the entry point hls.d.ts
2253
2288
2254
2289
// (No @packageDocumentation comment for this package)
2255
2290
0 commit comments