ClosedCaptionsSettings

data class ClosedCaptionsSettings(    val visibilityDurationMs: Long = DEFAULT_CAPTIONS_AUTO_DISMISS_TIME_MS,     val autoDismissCaptions: Boolean = true,     val maxVisibleCaptions: Int = 2)

Configuration for managing closed captions in the ClosedCaptionManager.

Parameters

visibilityDurationMs

The duration (in milliseconds) after which captions will be automatically removed. Set to DEFAULT_CAPTIONS_AUTO_DISMISS_TIME_MS by default.

autoDismissCaptions

Determines whether closed captions should be automatically dismissed after a delay. If set to false, captions will remain visible indefinitely.

maxVisibleCaptions

The maximum number of closed captions to retain in the ClosedCaptionManager.closedCaptions flow.

Constructors

Link copied to clipboard
constructor(    visibilityDurationMs: Long = DEFAULT_CAPTIONS_AUTO_DISMISS_TIME_MS,     autoDismissCaptions: Boolean = true,     maxVisibleCaptions: Int = 2)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard