Skip to content

Type Alias: LicenseRequest ​

ts
type LicenseRequest = object;

Defined in: common/LicenseRequest.ts:9

Represents a DRM license request.

Contains all data needed to make a license acquisition request to a DRM license server.

Properties ​

data? ​

ts
data?: ArrayBuffer;

Defined in: common/LicenseRequest.ts:49

The license request data


headers? ​

ts
headers?: Record<string, string>;

Defined in: common/LicenseRequest.ts:28

The HTP request headers


messageType? ​

ts
messageType?: MediaKeyMessageType;

Defined in: common/LicenseRequest.ts:39

The license request message type (see https://www.w3.org/TR/encrypted-media/#dom-mediakeymessagetype)


method ​

ts
method: "GET" | "POST";

Defined in: common/LicenseRequest.ts:18

HTTP method


responseType ​

ts
responseType: XMLHttpRequestResponseType;

Defined in: common/LicenseRequest.ts:23

The HTTP response type


sessionId? ​

ts
sessionId?: string;

Defined in: common/LicenseRequest.ts:44

The corresponding EME session ID


url ​

ts
url: string;

Defined in: common/LicenseRequest.ts:13

License server URL.


withCredentials? ​

ts
withCredentials?: boolean;

Defined in: common/LicenseRequest.ts:33

Whether request is done using credentials (cross-site cookies)

A Streaming Video Technology Alliance project.