public class BrightcoveMediaDrmCallback
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
BRIGHTCOVE_BASE_URL
The base URL to Brightcove DRM license service.
|
static java.lang.String |
DEFAULT_URL
The name of the property in the video properties map that specified the default URL to the
DRM license service that should be used if the request does not include an URL.
|
protected java.lang.String |
defaultUrl
The fully qualified URL to the DRM license service that will be used if the request does
include an URL.
|
protected static java.util.Map<java.lang.String,java.lang.String> |
REQUEST_HEADERS
A map of HTTP headers that should be added to the license request.
|
Modifier | Constructor and Description |
---|---|
protected |
BrightcoveMediaDrmCallback(java.lang.String defaultUrl) |
Modifier and Type | Method and Description |
---|---|
void |
addOptionalHeaders(java.util.Map<java.lang.String,java.lang.String> optionalHeaders)
Adds the optional request headers that must be passed to the license key request.
|
java.util.Map<java.lang.String,java.lang.String> |
getOptionalHeaders()
Gets the optional request headers that will be passed to the license key request.
|
protected void |
setLicenseRequestHeaders(java.util.Map<java.lang.String,java.lang.Object> videoProperties) |
void |
setOptionalHeaders(java.util.Map<java.lang.String,java.lang.String> optionalHeaders)
Sets the optional request headers that must be passed to the license key request.
|
protected void |
setVideoHeaders(java.util.Map<java.lang.String,java.lang.Object> videoProperties)
Deprecated.
Use
setLicenseRequestHeaders(Map) instead |
public static final java.lang.String DEFAULT_URL
protected static final java.util.Map<java.lang.String,java.lang.String> REQUEST_HEADERS
protected static final java.lang.String BRIGHTCOVE_BASE_URL
protected final java.lang.String defaultUrl
protected BrightcoveMediaDrmCallback(@Nullable java.lang.String defaultUrl)
@Nullable public java.util.Map<java.lang.String,java.lang.String> getOptionalHeaders()
public void setOptionalHeaders(@Nullable java.util.Map<java.lang.String,java.lang.String> optionalHeaders)
optionalHeaders
- null or reference to an immutable map of request headers.public void addOptionalHeaders(@NonNull java.util.Map<java.lang.String,java.lang.String> optionalHeaders)
optionalHeaders
- The map of headers to be added.@Deprecated protected void setVideoHeaders(@NonNull java.util.Map<java.lang.String,java.lang.Object> videoProperties)
setLicenseRequestHeaders(Map)
insteadVideo.Fields#WIDEVINE_HEADERS
key.videoProperties
- the video properties.setOptionalHeaders(Map)
protected void setLicenseRequestHeaders(@NonNull java.util.Map<java.lang.String,java.lang.Object> videoProperties)