Instance Property


An optional array of language codes restricting the set of subtitle languages available to the user.


var allowedSubtitleOptionLanguages: [String]? { get set }


By default (when this property’s value is nil), the AVPlayerViewController UI allows a user to choose any (or none) of the subtitle languages associated with media content for display, or an “Auto” option that automatically presents subtitles only when appropriate. To allow only a restricted subset of subtitles, provide an array of BCP47 language codes for this property. Restricting the set of subtitle languages makes the “Auto” option unavailable.

See Also

Managing Subtitles

var requiresFullSubtitles: Bool

A Boolean value that determines whether the user is allowed to disable display of subtitles.