@@ -17,6 +17,15 @@ declare namespace dashjs {
17
17
setCalleeNameVisible ( flag : boolean ) : void ;
18
18
}
19
19
20
+ namespace Debug {
21
+ const LOG_LEVEL_NONE = 0 ;
22
+ const LOG_LEVEL_FATAL = 1 ;
23
+ const LOG_LEVEL_ERROR = 2 ;
24
+ const LOG_LEVEL_WARNING = 3 ;
25
+ const LOG_LEVEL_INFO = 4 ;
26
+ const LOG_LEVEL_DEBUG = 5 ;
27
+ }
28
+
20
29
interface EventBus {
21
30
on ( type : string , listener : any , scope : any , options ?: object ) : void ;
22
31
@@ -1296,6 +1305,14 @@ declare namespace dashjs {
1296
1305
1297
1306
export type TrackSelectionFunction = ( tracks : MediaInfo [ ] ) => MediaInfo [ ] ;
1298
1307
1308
+ export interface DvrWindow {
1309
+ start : number ;
1310
+ end : number ;
1311
+ startAsUtc : number ;
1312
+ endAsUtc : number ;
1313
+ size : number ;
1314
+ }
1315
+
1299
1316
export interface MediaPlayerClass {
1300
1317
setConfig ( config : object ) : void ;
1301
1318
@@ -1427,7 +1444,7 @@ declare namespace dashjs {
1427
1444
1428
1445
timeInDvrWindow ( ) : number ;
1429
1446
1430
- getDvrWindow ( ) : object ;
1447
+ getDvrWindow ( ) : DvrWindow ;
1431
1448
1432
1449
duration ( ) : number ;
1433
1450
@@ -1483,7 +1500,7 @@ declare namespace dashjs {
1483
1500
1484
1501
setTextTrack ( idx : number ) : void ;
1485
1502
1486
- getRepresentationsFor ( type : MediaType ) : Representation [ ] ;
1503
+ getRepresentationsByType ( type : MediaType ) : Representation [ ] ;
1487
1504
1488
1505
getStreamsFromManifest ( manifest : object ) : StreamInfo [ ] ;
1489
1506
@@ -3178,6 +3195,31 @@ declare namespace dashjs {
3178
3195
MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE : 'DRM: licenser error! --' ;
3179
3196
}
3180
3197
3198
+ /**
3199
+ * Streaming - Protection - Events
3200
+ **/
3201
+
3202
+ export interface ProtectionEvents {
3203
+ KEY_ADDED : 'public_keyAdded' ;
3204
+ KEY_ERROR : 'public_keyError' ;
3205
+ KEY_MESSAGE : 'public_keyMessage' ;
3206
+ KEY_SESSION_CLOSED : 'public_keySessionClosed' ;
3207
+ KEY_SESSION_CREATED : 'public_keySessionCreated' ;
3208
+ KEY_SESSION_REMOVED : 'public_keySessionRemoved' ;
3209
+ KEY_STATUSES_CHANGED : 'public_keyStatusesChanged' ;
3210
+ KEY_SYSTEM_ACCESS_COMPLETE : 'public_keySystemAccessComplete' ;
3211
+ KEY_SYSTEM_SELECTED : 'public_keySystemSelected' ;
3212
+ LICENSE_REQUEST_COMPLETE : 'public_licenseRequestComplete' ;
3213
+ LICENSE_REQUEST_SENDING : 'public_licenseRequestSending' ;
3214
+ NEED_KEY : 'needkey' ;
3215
+ PROTECTION_CREATED : 'public_protectioncreated' ;
3216
+ PROTECTION_DESTROYED : 'public_protectiondestroyed' ;
3217
+ SERVER_CERTIFICATE_UPDATED : 'serverCertificateUpdated' ;
3218
+ TEARDOWN_COMPLETE : 'protectionTeardownComplete' ;
3219
+ VIDEO_ELEMENT_SELECTED : 'videoElementSelected' ;
3220
+ KEY_SESSION_UPDATED : 'public_keySessionUpdated' ;
3221
+ }
3222
+
3181
3223
/**
3182
3224
* Streaming - Protection - Models
3183
3225
**/
@@ -3511,6 +3553,11 @@ declare namespace dashjs {
3511
3553
createProtectionSystem ( config : object ) : void ;
3512
3554
}
3513
3555
3556
+ export namespace Protection {
3557
+ export const events : ProtectionEvents ;
3558
+ export const errors : ProtectionErrors ;
3559
+ }
3560
+
3514
3561
/**
3515
3562
* Streaming - Rules - ABR - LolP
3516
3563
*/
0 commit comments