<!--
{
  "documentType" : "article",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/cmtimerange-dictionary-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Dictionary Keys"
}
-->

# Dictionary Keys

Keys to use when working with dictionary representations of a time range.

## Discussion

To convert a `CMTimeRange` to and from a `CFDictionary`, see [`CMTimeRangeCopyAsDictionary(_:allocator:)`](/documentation/CoreMedia/CMTimeRangeCopyAsDictionary(_:allocator:)) and [`CMTimeRangeMakeFromDictionary(_:)`](/documentation/CoreMedia/CMTimeRangeMakeFromDictionary(_:)).

## Topics

### Constants

[`let kCMTimeRangeStartKey: CFString`](/documentation/CoreMedia/kCMTimeRangeStartKey)

The key for the start field of a time range.

[`let kCMTimeRangeDurationKey: CFString`](/documentation/CoreMedia/kCMTimeRangeDurationKey)

The key for the timescale of a time range.



---

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)