---
title: kCMSampleAttachmentKey_DisplayImmediately
framework: coremedia
role: symbol
role_heading: Global Variable
path: coremedia/kcmsampleattachmentkey_displayimmediately
---

# kCMSampleAttachmentKey_DisplayImmediately

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

## Declaration

```swift
let kCMSampleAttachmentKey_DisplayImmediately: CFString
```

## Discussion

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 AVSampleBufferDisplayLayer class. This attachment is not written to media files.

## See Also

### Sample Keys

- [kCMSampleAttachmentKey_NotSync](coremedia/kcmsampleattachmentkey_notsync.md)
- [kCMSampleAttachmentKey_PartialSync](coremedia/kcmsampleattachmentkey_partialsync.md)
- [kCMSampleAttachmentKey_DependsOnOthers](coremedia/kcmsampleattachmentkey_dependsonothers.md)
- [kCMSampleAttachmentKey_IsDependedOnByOthers](coremedia/kcmsampleattachmentkey_isdependedonbyothers.md)
- [kCMSampleAttachmentKey_DoNotDisplay](coremedia/kcmsampleattachmentkey_donotdisplay.md)
- [kCMSampleAttachmentKey_EarlierDisplayTimesAllowed](coremedia/kcmsampleattachmentkey_earlierdisplaytimesallowed.md)
- [kCMSampleAttachmentKey_HasRedundantCoding](coremedia/kcmsampleattachmentkey_hasredundantcoding.md)
- [kCMSampleAttachmentKey_PostDecodeProcessingMetadata](coremedia/kcmsampleattachmentkey_postdecodeprocessingmetadata.md)
