Type Alias LicenseRequestBeta

LicenseRequest: {
    data?: ArrayBuffer;
    headers?: Record<string, string>;
    messageType?: MediaKeyMessageType;
    method: "GET" | "POST";
    responseType: XMLHttpRequestResponseType;
    sessionId?: string;
    url: string;
    withCredentials?: boolean;
}

Represents a DRM license request.

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

Type declaration

  • Optionaldata?: ArrayBuffer

    The license request data

  • Optionalheaders?: Record<string, string>

    The HTP request headers

  • OptionalmessageType?: MediaKeyMessageType
  • method: "GET" | "POST"

    HTTP method

  • responseType: XMLHttpRequestResponseType

    The HTTP response type

  • OptionalsessionId?: string

    The corresponding EME session ID

  • url: string

    License server URL.

  • OptionalwithCredentials?: boolean

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