Expose closed captions

Last update: 2023-10-02

To make closed captions available to your client player, you must enable them. The user can turn closed captions on or off and select the formatting.

To expose closed captions:

  1. In PTMediaPlayer object, set the closedCaptionDisplayEnabled property.

    If the user has enabled closed captions, this step displays the text.

    NOTE

    The client user turns closed captioning on or off by using the iOS Accessibility Settings, and these settings also provide formattng options.

    NOTE

    closedCaptionDisplayEnabled property is deprecated. Use subtitlesOptions property of PTMediaPlayerItem. See Expose subtitles to use closed captions.

On this page