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

# kCMSampleAttachmentKey_DependsOnOthers

Indicates whether the sample depends on other samples for decoding (type `CFBoolean`).

```
let kCMSampleAttachmentKey_DependsOnOthers: CFString
```

## Discussion

This key has no default value. If this key is not present, dependency information for the sample is unknown. A value of <doc://com.apple.documentation/documentation/CoreFoundation/kCFBooleanFalse> indicates that the sample does not depend on other samples (for example, an I frame).  A value of <doc://com.apple.documentation/documentation/CoreFoundation/kCFBooleanTrue> indicates that the sample does depend on other samples (for example, a P or B frame).

This attachment is read from and 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)