Class BrightcoveCastCustomData.Builder

java.lang.Object
com.brightcove.cast.model.BrightcoveCastCustomData.Builder
Enclosing class:
BrightcoveCastCustomData

public static class BrightcoveCastCustomData.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(@NonNull android.content.Context context)
      Default constructor
    • Builder

      public Builder(BrightcoveCastCustomData brightcoveCastCustomData)
      Creates a Builder object initialized with the values of the customData parameter.
      Parameters:
      brightcoveCastCustomData - values to initialize the object.
  • Method Details

    • setAccountId

      public BrightcoveCastCustomData.Builder setAccountId(@Nullable String accountId)
      Sets the brightcove account id
      Returns:
      this builder instance.
    • setPolicyKey

      public BrightcoveCastCustomData.Builder setPolicyKey(@Nullable String policyKey)
      Sets the player policy key.
      Returns:
      this builder instance.
    • setUserId

      public BrightcoveCastCustomData.Builder setUserId(@Nullable String userId)
      The user id to be used when sending custom data to the Cast Receiver app. The receiver app 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.
      Returns:
      this builder instance.
    • setApplicationId

      public BrightcoveCastCustomData.Builder setApplicationId(@Nullable String applicationId)
      The application identifier for analytics.
      Parameters:
      applicationId - the application id
      Returns:
      this builder instance.
    • setBrightcoveAuthorizationToken

      public BrightcoveCastCustomData.Builder setBrightcoveAuthorizationToken(@Nullable String brightcoveAuthorizationToken)
      Sets the Brightcove authorization token. Depending on your VideoCloud account configuration, this token might be required in order to successfully make certain requests.
      Parameters:
      brightcoveAuthorizationToken - the Brightcove authorization token
      Returns:
      the builder instance
    • setAdConfigId

      public 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 order to successfully make certain requests.
      Parameters:
      adConfigId - the Brightcove adConfigId
      Returns:
      the builder instance
    • setSelectedTextAndAudioLanguages

      public 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
      Returns:
      the builder instance
    • setPlayerUrl

      public BrightcoveCastCustomData.Builder setPlayerUrl(@Nullable String playerUrl)
      Sets the player URL for a custom receiver app.
      Parameters:
      playerUrl - the playerUrl for a custom receiver
      Returns:
      the builder instance
    • setWatermarkingToken

      public BrightcoveCastCustomData.Builder setWatermarkingToken(@Nullable String watermarkingToken)
      Sets the watermarking token to be set in the CatalogParams object.
      Parameters:
      watermarkingToken - the watermarking token
      Returns:
      the builder instance
    • setEmeHeaders

      public 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
      Returns:
      the builder instance
    • build

      public BrightcoveCastCustomData build()