<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTimeMappingCopyAsDictionary(_:allocator:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMTimeMappingCopyAsDictionary"
  },
  "title" : "CMTimeMappingCopyAsDictionary(_:allocator:)"
}
-->

# CMTimeMappingCopyAsDictionary(_:allocator:)

Returns a dictionary representation of a time mapping.

```
func CMTimeMappingCopyAsDictionary(_ mapping: CMTimeMapping, allocator: CFAllocator?) -> CFDictionary?
```

## Parameters

`mapping`

The time mapping for which to create a dictionary representation.

`allocator`

An allocator to use to create a dictionary. Pass `kCFAllocatorDefault` to use the default allocator.

## Return Value

A dictionary representation of a time mapping.

## Discussion

---

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)