<!--
{
  "availability" : [
    "iOS: 4.0.0 - 11.0.0",
    "iPadOS: 4.0.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.7.0 - 10.13.0",
    "tvOS: 9.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayer/isClosedCaptionDisplayEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayer(py)closedCaptionDisplayEnabled"
  },
  "title" : "isClosedCaptionDisplayEnabled"
}
-->

# isClosedCaptionDisplayEnabled

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

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

## Discussion

The player displays closed captions in the following cases:

- Closed captions are present in the media and the value of `closedCaptionDisplayEnabled` is <doc://com.apple.documentation/documentation/Swift/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 ``doc://com.apple.avfoundation/documentation/AVFoundation/AVPlayer`` and ``doc://com.apple.avfoundation/documentation/AVFoundation/AVPlayerItem``. The media selection API works equally well for displaying SDH subtitles as well as other kinds of content offering accessibility features. See ``doc://com.apple.avfoundation/documentation/AVFoundation/AVPlayerItem/select(_:in:)`` for more details.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)