---
title: isClosedCaptionDisplayEnabled
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayer/isclosedcaptiondisplayenabled
---

# isClosedCaptionDisplayEnabled

A Boolean value that indicates whether the player uses closed captioning.

## Declaration

```swift
var isClosedCaptionDisplayEnabled: Bool { get set }
```

## Discussion

Discussion The player displays closed captions in the following cases: Closed captions are present in the media and the value of closedCaptionDisplayEnabled is true, or A media selection option representing a stream of closed captions is selected in the legible media selection group. note: It’s strongly recommended that you don’t rely on this property to control the display of closed captions and instead use the media selection capabilities of AVPlayer and AVPlayerItem. The media selection API works equally well for displaying SDH subtitles as well as other kinds of content offering accessibility features. See select(_:in:) for more details.
