Instance Property

requiresFullSubtitles

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

Declaration

var requiresFullSubtitles: Bool { get set }

Discussion

By default (when this property’s value is false), the AVPlayerViewController UI allows a user to choose any of the subtitle languages associated with media content for display, an “Auto” option that automatically presents subtitles only when appropriate, or an “Off” option that disables subtitle display. To require that subtitles always be displayed (if available in the presented media content), set this property’s value to true. Requiring full subtitles makes the “Auto” and “Off” options unavailable.

See Also

Managing Subtitles

var allowedSubtitleOptionLanguages: [String]?

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