public class WidevineAuthorizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BRIGHTCOVE_AUTHORIZATION_HEADER_KEY
The constant BRIGHTCOVE_AUTHORIZATION_HEADER_KEY.
|
static java.lang.String |
BRIGHTCOVE_AUTHORIZATION_QUERY_PARAM_KEY
The constant BRIGHTCOVE_AUTHORIZATION_QUERY_PARAM_KEY.
|
Constructor and Description |
---|
WidevineAuthorizer() |
Modifier and Type | Method and Description |
---|---|
Video |
configure(Video video,
java.lang.String brightcoveAuthorizationToken)
Configures the video with the Authorization Token.
|
java.lang.String |
findAuthorizationToken(Video video)
Attempts to find the Authorization Token string configured in the Video.
|
public static final java.lang.String BRIGHTCOVE_AUTHORIZATION_HEADER_KEY
public static final java.lang.String BRIGHTCOVE_AUTHORIZATION_QUERY_PARAM_KEY
@NonNull public Video configure(@NonNull Video video, @NonNull java.lang.String brightcoveAuthorizationToken)
video
- the videobrightcoveAuthorizationToken
- the Authorization Token@Nullable public java.lang.String findAuthorizationToken(@NonNull Video video)
video
- the video