Package com.brightcove.player.drm
Class BrightcoveMediaDrmCallback
java.lang.Object
com.brightcove.player.drm.BrightcoveMediaDrmCallback
- Direct Known Subclasses:
WidevineMediaDrmCallback
Provides a base implementation of Media DRM callback handler that can be used to concrete
implementations specific to ExoPlayer/CDM.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
The base URL to Brightcove DRM license service.static final String
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 final String
The fully qualified URL to the DRM license service that will be used if the request does include an URL.A map of HTTP headers that should be added to the license request. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOptionalHeaders
(Map<String, String> optionalHeaders) Adds the optional request headers that must be passed to the license key request.Gets the optional request headers that will be passed to the license key request.protected void
setLicenseRequestHeaders
(Map<String, Object> videoProperties) void
setOptionalHeaders
(Map<String, String> optionalHeaders) Sets the optional request headers that must be passed to the license key request.protected void
setVideoHeaders
(Map<String, Object> videoProperties) Deprecated.
-
Field Details
-
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.- See Also:
-
REQUEST_HEADERS
A map of HTTP headers that should be added to the license request. -
BRIGHTCOVE_BASE_URL
The base URL to Brightcove DRM license service.- See Also:
-
defaultUrl
The fully qualified URL to the DRM license service that will be used if the request does include an URL.
-
-
Constructor Details
-
BrightcoveMediaDrmCallback
-
-
Method Details
-
getOptionalHeaders
Gets the optional request headers that will be passed to the license key request.- Returns:
- null or reference to an immutable map of request headers.
-
setOptionalHeaders
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.
-
addOptionalHeaders
Adds the optional request headers that must be passed to the license key request.- Parameters:
optionalHeaders
- The map of headers to be added.
-
setVideoHeaders
Deprecated.UsesetLicenseRequestHeaders(Map)
insteadSets the Video widevine headers from the videoProperties if available, through theVideo.Fields.WIDEVINE_HEADERS
key.- Parameters:
videoProperties
- the video properties.- See Also:
-
setLicenseRequestHeaders
-
setLicenseRequestHeaders(Map)
instead