<!--
{
  "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_DisplayImmediately",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@kCMSampleAttachmentKey_DisplayImmediately"
  },
  "title" : "kCMSampleAttachmentKey_DisplayImmediately"
}
-->

# kCMSampleAttachmentKey_DisplayImmediately

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

```
let kCMSampleAttachmentKey_DisplayImmediately: CFString
```

## Discussion

If this key is present, the sample should be displayed as soon as possible rather than according to its presentation timestamp. 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)