ClosedCaptionsConfig

constructor(captionsAutoDismissTime: Long = DEFAULT_CAPTIONS_AUTO_DISMISS_TIME_MS, autoDismissCaptions: Boolean = true, maxCaptions: Int = 3)

Parameters

captionsAutoDismissTime

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.

maxCaptions

The maximum number of closed captions to retain in the ClosedCaptionManager.closedCaptions flow. Must be greater than or equal to io.getstream.video.android.compose.ui.components.closedcaptions.ClosedCaptionsThemeConfig.maxVisibleCaptions to ensure the UI has sufficient data to render.