setPreferredCaptionsLanguage

open fun setPreferredCaptionsLanguage(preferredCaptionsLanguage: String): VdoInitParams.Builder

Sets the preferred captions language for the media.

This method specifies the language to be used for captions, if available. The captions will be displayed in the preferred language if it is supported by the media.

Return

the Builder instance for method chaining.

Parameters

preferredCaptionsLanguage

the preferred captions language as an ISO 639-1 language code (e.g., "en" for English).