Constructor
new LicenseRequest(url, body, method, withCredentials, opt_extraHeadersopt, opt_requestTimeoutopt)
Creates a LicenseRequest. A LicenseRequest manages retries automatically.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
string | The URL. | |
body |
ArrayBuffer | string | The request's body. | |
method |
string | The HTTP request method, which must be either 'GET' or 'POST'. | |
withCredentials |
boolean | True if cookies should be sent in cross-domain license requests. If true, the browser will reject license responses which use the wildcard header "Access-Control-Allow-Origin: *". See http://goo.gl/pzY9F7 for more information. | |
opt_extraHeaders |
Object.<string, string> |
<optional> |
Optional extra HTTP request headers as key-value pairs. |
opt_requestTimeout |
number |
<optional> |
The timeout for a LicenseRequest in seconds. |
- Source:
Members
-
(private, non-null) parameters_ :shaka.util.AjaxRequest.Parameters
-
Type:
- Source:
-
(private, non-null) url_ :shaka.util.FailoverUri
-
Type:
- Source:
Methods
-
send() → (non-null) {Promise.<!Uint8Array>}
-
Sends the license request.
- Source:
Returns:
- Type
- Promise.<!Uint8Array>