java.lang.Object

com.opentok.CaptionProperties.Builder

Enclosing class: : CaptionProperties


public static class CaptionProperties.Builder extends Object

Used to create a CaptionProperties object.

See Also: : - CaptionProperties

Method Summary

All MethodsInstance MethodsConcrete Methods

Modifier and Type

Method

Description

CaptionProperties

build()

Builds the CaptionProperties object.

CaptionProperties.Builder

languageCode(String languageCode)

The BCP-47 code for a spoken language used on this call.

CaptionProperties.Builder

maxDuration(int maxDuration)

The maximum duration for the audio captioning, in seconds.

CaptionProperties.Builder

partialCaptions(boolean partialCaptions)

Whether to enable this to faster captioning at the cost of some degree of inaccuracies.

CaptionProperties.Builder

statusCallbackUrl(String statusCallbackUrl)

A publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

languageCode

public CaptionProperties.Builder languageCode(String languageCode)

The BCP-47 code for a spoken language used on this call. The default value is "en-US". The following language codes are supported: "en-AU" (English, Australia), "en-GB" (English, UK), "en-US" (English, US), "es-US" (Spanish, US), "zh-CN" (Chinese, Simplified), "fr-FR" (French), "fr-CA" (French, Canadian), "de-DE" (German), "hi-IN" (Hindi, Indian), "it-IT" (Italian), "ja-JP" (Japanese), "ko-KR" (Korean), "pt-BR" (Portuguese, Brazilian), "th-TH" (Thai).

Parameters: : languageCode - The BCP-47 language code as a string.

Returns: : This Builder with the languageCode property setting.

statusCallbackUrl

public CaptionProperties.Builder statusCallbackUrl(String statusCallbackUrl)

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.

Parameters: : statusCallbackUrl - The status callback URL as a string.

Returns: : This Builder with the statusCallbackUrl property setting.

maxDuration

public CaptionProperties.Builder maxDuration(int maxDuration)

The maximum duration for the audio captioning, in seconds. The default value is 14,400 seconds (4 hours), the maximum duration allowed.

Parameters: : maxDuration - The maximum captions duration in seconds.

Returns: : This Builder with the maxDuration property setting.

partialCaptions

public CaptionProperties.Builder partialCaptions(boolean partialCaptions)

Whether to enable this to faster captioning at the cost of some degree of inaccuracies. The default value is true.

Parameters: : partialCaptions - Whether to enable faster captions.

Returns: : This Builder with the partialCaptions property setting.

build

public CaptionProperties build()

Builds the CaptionProperties object.

Returns: : The CaptionProperties object with this builder's settings.