<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/kCMSampleAttachmentKey_DoNotDisplay",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@kCMSampleAttachmentKey_DoNotDisplay"
  },
  "title" : "kCMSampleAttachmentKey_DoNotDisplay"
}
-->

# kCMSampleAttachmentKey_DoNotDisplay

Indicates whether the sample should be decoded but not displayed (type `CFBoolean`, default false).

```
let kCMSampleAttachmentKey_DoNotDisplay: CFString
```

## Discussion

Use this attachment at run time to request this behavior from a display pipeline such as the <doc://com.apple.documentation/documentation/AVFoundation/AVSampleBufferDisplayLayer> class.

This attachment is not written to media files.

---

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)