Package com.opentok
Class CaptionProperties
java.lang.Object
com.opentok.CaptionProperties
Defines values for the
properties parameter of the
OpenTok.startCaptions(String, String, CaptionProperties) method.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to create a CaptionProperties object. -
Method Summary
Modifier and TypeMethodDescriptionstatic CaptionProperties.BuilderBuilder()Entry point for constructing an instance of this class.The BCP-47 code for a spoken language used on this call.intThe maximum duration for the audio captioning, in seconds.A publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention.booleanWhether faster captioning is enabled at the cost of some degree of inaccuracies.
-
Method Details
-
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
nullif not set.
-
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:
trueif the partial captions setting is enabled.
-
Builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
-