-
public class BrightcoveMediaDrmCallback
Provides a base implementation of Media DRM callback handler that can be used as a concrete implementation specific to ExoPlayer and the Widevine CDM.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
DEFAULT_URL
public final static String
HEADER_KEY_CONTENT_TYPE
private Map<String, String>
optionalHeaders
private Map<String, Object>
optionalRequestData
public final static String
MAP_KEY_DRM_INFO
-
Method Summary
Modifier and Type Method Description Map<String, String>
getOptionalHeaders()
Gets the optional request headers that will be passed to the license key request. void
setOptionalHeaders(@Nullable() Map<String, String> optionalHeaders)
Sets the optional request headers that must be passed to the license key request. Map<String, Object>
getOptionalRequestData()
Gets the optional request body data that will be passed to the license key request. void
setOptionalRequestData(@Nullable() Map<String, Object> requestDataMap)
Sets the optional request body data that will be passed to the license key request. void
addOptionalHeaders(@NonNull() Map<String, String> optionalHeaders)
Adds the optional request headers that must be passed to the license key request. -
-
Method Detail
-
getOptionalHeaders
@Nullable() Map<String, String> getOptionalHeaders()
Gets the optional request headers that will be passed to the license key request.
-
setOptionalHeaders
void setOptionalHeaders(@Nullable() Map<String, String> optionalHeaders)
Sets the optional request headers that must be passed to the license key request.
- Parameters:
optionalHeaders
- null or reference to an immutable map of request headers.
-
getOptionalRequestData
@Nullable() Map<String, Object> getOptionalRequestData()
Gets the optional request body data that will be passed to the license key request.
-
setOptionalRequestData
void setOptionalRequestData(@Nullable() Map<String, Object> requestDataMap)
Sets the optional request body data that will be passed to the license key request.
- Parameters:
requestDataMap
- A Map of request body data values that will be used to create the body ofthe custom license requestNote that these values will be the only values used in the license request body
-
addOptionalHeaders
void addOptionalHeaders(@NonNull() Map<String, String> optionalHeaders)
Adds the optional request headers that must be passed to the license key request.
- Parameters:
optionalHeaders
- The map of headers to be added.
-
-
-
-