Package com.opentok

Class CaptionProperties

java.lang.Object
com.opentok.CaptionProperties

public class CaptionProperties extends Object
Defines values for the properties parameter of the OpenTok.startCaptions(String, String, CaptionProperties) method.
See Also:
  • Method Details

    • getStatusCallbackUrl

      public String getStatusCallbackUrl()
      A publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention. The minimum length of the URL is 15 characters and the maximum length is 2048 characters. For more information, see Live Caption status updates.
      Returns:
      The status callback URL as a string, or null if not set.
    • getLanguageCode

      public String getLanguageCode()
      The BCP-47 code for a spoken language used on this call.
      Returns:
      The language code as a string.
    • getMaxDuration

      public int getMaxDuration()
      The maximum duration for the audio captioning, in seconds.
      Returns:
      The maximum captioning duration as an integer.
    • partialCaptions

      public boolean partialCaptions()
      Whether faster captioning is enabled at the cost of some degree of inaccuracies.
      Returns:
      true if the partial captions setting is enabled.
    • Builder

      public static CaptionProperties.Builder Builder()
      Entry point for constructing an instance of this class.
      Returns:
      A new Builder.