-
public class BrightcoveCastCustomData.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private String
accountId
private String
policyKey
private String
userId
private String
applicationId
private String
brightcoveAuthorizationToken
private String
adConfigId
private Map<String, String>
selectedTextAndAudioLanguages
private String
playerUrl
private String
watermarkingToken
private Map<String, String>
emeHeaders
-
Constructor Summary
Constructors Constructor Description BrightcoveCastCustomData.Builder(Context context)
Default constructor BrightcoveCastCustomData.Builder(BrightcoveCastCustomData brightcoveCastCustomData)
Creates a Builder object initialized with the values of the {@code customData}
parameter.
-
Method Summary
Modifier and Type Method Description BrightcoveCastCustomData.Builder
setAccountId(@Nullable() String accountId)
Sets the brightcove account id BrightcoveCastCustomData.Builder
setPolicyKey(@Nullable() String policyKey)
Sets the player policy key. BrightcoveCastCustomData.Builder
setUserId(@Nullable() String userId)
The user id to be used when sending custom data to the Cast Receiver app. BrightcoveCastCustomData.Builder
setApplicationId(@Nullable() String applicationId)
The application identifier for analytics. BrightcoveCastCustomData.Builder
setBrightcoveAuthorizationToken(@Nullable() String brightcoveAuthorizationToken)
Sets the Brightcove authorization token.Depending on your VideoCloud account configuration, this token might be required in orderto successfully make certain requests. BrightcoveCastCustomData.Builder
setAdConfigId(@Nullable() String adConfigId)
Sets the Brightcove AdConfigId value.Depending on the type of content that you wish to cast, the AdConfigId could be required in orderto successfully make certain requests. BrightcoveCastCustomData.Builder
setSelectedTextAndAudioLanguages(@Nullable() Map<String, String> selectedTextAndAudioLanguages)
Sets the selected text and audio languages (or null, if they are not provided). BrightcoveCastCustomData.Builder
setPlayerUrl(@Nullable() String playerUrl)
Sets the player URL for a custom receiver app. BrightcoveCastCustomData.Builder
setWatermarkingToken(@Nullable() String watermarkingToken)
Sets the watermarking token to be set in the CatalogParams object. BrightcoveCastCustomData.Builder
setEmeHeaders(@Nullable() Map<String, String> emeHeaders)
Sets the emeHeaders object to be set in the CustomData object. BrightcoveCastCustomData
build()
-
-
Constructor Detail
-
BrightcoveCastCustomData.Builder
BrightcoveCastCustomData.Builder(Context context)
Default constructor
-
BrightcoveCastCustomData.Builder
BrightcoveCastCustomData.Builder(BrightcoveCastCustomData brightcoveCastCustomData)
Creates a Builder object initialized with the values of the{@code customData}
parameter.- Parameters:
brightcoveCastCustomData
- values to initialize the object.
-
-
Method Detail
-
setAccountId
BrightcoveCastCustomData.Builder setAccountId(@Nullable() String accountId)
Sets the brightcove account id
-
setPolicyKey
BrightcoveCastCustomData.Builder setPolicyKey(@Nullable() String policyKey)
Sets the player policy key.
-
setUserId
BrightcoveCastCustomData.Builder setUserId(@Nullable() String userId)
The user id to be used when sending custom data to the Cast Receiver app. The receiverapp will use this user id for Analytic's events.Settings.Secure.ANDROID_ID is used as the default value.
- Parameters:
userId
- the analytics user id.
-
setApplicationId
BrightcoveCastCustomData.Builder setApplicationId(@Nullable() String applicationId)
The application identifier for analytics.
- Parameters:
applicationId
- the application id
-
setBrightcoveAuthorizationToken
BrightcoveCastCustomData.Builder setBrightcoveAuthorizationToken(@Nullable() String brightcoveAuthorizationToken)
Sets the Brightcove authorization token.Depending on your VideoCloud account configuration, this token might be required in orderto successfully make certain requests.
- Parameters:
brightcoveAuthorizationToken
- the Brightcove authorization token
-
setAdConfigId
BrightcoveCastCustomData.Builder setAdConfigId(@Nullable() String adConfigId)
Sets the Brightcove AdConfigId value.Depending on the type of content that you wish to cast, the AdConfigId could be required in orderto successfully make certain requests.
- Parameters:
adConfigId
- the Brightcove adConfigId
-
setSelectedTextAndAudioLanguages
BrightcoveCastCustomData.Builder setSelectedTextAndAudioLanguages(@Nullable() Map<String, String> selectedTextAndAudioLanguages)
Sets the selected text and audio languages (or null, if they are not provided).
- Parameters:
selectedTextAndAudioLanguages
- the Brightcove adConfigId
-
setPlayerUrl
BrightcoveCastCustomData.Builder setPlayerUrl(@Nullable() String playerUrl)
Sets the player URL for a custom receiver app.
- Parameters:
playerUrl
- the playerUrl for a custom receiver
-
setWatermarkingToken
BrightcoveCastCustomData.Builder setWatermarkingToken(@Nullable() String watermarkingToken)
Sets the watermarking token to be set in the CatalogParams object.
- Parameters:
watermarkingToken
- the watermarking token
-
setEmeHeaders
BrightcoveCastCustomData.Builder setEmeHeaders(@Nullable() Map<String, String> emeHeaders)
Sets the emeHeaders object to be set in the CustomData object.
- Parameters:
emeHeaders
- The Map of EmeHeaders
-
build
BrightcoveCastCustomData build()
-
-
-
-