ClosedCaptionsSettings
constructor(visibilityDurationMs: Long = DEFAULT_CAPTIONS_AUTO_DISMISS_TIME_MS, autoDismissCaptions: Boolean = true, maxVisibleCaptions: Int = 2)
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.