Skip to content

Commit

Permalink
Update/fix typings (#3680)
Browse files Browse the repository at this point in the history
* Update typings for protectionData

* fix typings

* fix typings
  • Loading branch information
bbert authored Jun 23, 2021
1 parent d85dd7f commit 6da0aeb
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ declare namespace dashjs {

removeAllABRCustomRule(): void;

getAverageThroughput(value: number): void;
getAverageThroughput(type: MediaType): number;

retrieveManifest(url: string, callback: (manifest: object | null, error: any) => void): void;

Expand Down Expand Up @@ -1262,7 +1262,7 @@ declare namespace dashjs {

getCurrentSchedulingInfo(type: MediaType): object;

getCurrentDVRInfo(type: MediaType): IDVRInfo[];
getCurrentDVRInfo(type: MediaType): IDVRInfo;

getCurrentManifestUpdate(): any;

Expand Down Expand Up @@ -1299,9 +1299,33 @@ declare namespace dashjs {
*/
serverURL?: string | { [P in MediaKeyMessageType]: string };

/** headers to add to the http request */
/** HTTP headers to add to the license request */
httpRequestHeaders?: object;

/** Wether license request is made using credentials */
withCredentials?: Boolean;

/** Timeout (in ms) for the license requests */
httpTimeout?: number;

/** The licenser server certificate as a BASE64 string representation of the binary stream (see https://www.w3.org/TR/encrypted-media/#dom-mediakeys-setservercertificate) */
serverCertificate?: string;

/** The audio robustness level (see https://www.w3.org/TR/encrypted-media/#dom-mediakeysystemmediacapability-robustness) */
audioRobustness?: string;

/** The video robustness level (see https://www.w3.org/TR/encrypted-media/#dom-mediakeysystemmediacapability-robustness) */
videoRobustness?: string;

/** Distinctive identifier (see https://www.w3.org/TR/encrypted-media/#dom-mediakeysystemconfiguration-distinctiveidentifier) */
distinctiveIdentifier?: string;

/** The session type (see https://www.w3.org/TR/encrypted-media/#dom-mediakeysessiontype) */
sessionType?: string;

/** The session id (see https://www.w3.org/TR/encrypted-media/#session-id) */
sessionId?: string;

/**
* Defines a set of clear keys that are available to the key system.
* Object properties are base64-encoded keyIDs (with no padding).
Expand Down

0 comments on commit 6da0aeb

Please sign in to comment.