<!--
{
  "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/CMTimeMapping",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@SA@CMTimeMapping"
  },
  "title" : "CMTimeMapping"
}
-->

# CMTimeMapping

A structure that maps a segment of a source time range to a target time range.

```
struct CMTimeMapping
```

## Topics

### Creating a Timebase

[`init(source:target:)`](/documentation/CoreMedia/CMTimeMapping/init(source:target:))

Creates a time mapping with a source and target time range.

[`init()`](/documentation/CoreMedia/CMTimeMapping/init())

Creates an empty time mapping.

### Accessing Time Ranges

[`source`](/documentation/CoreMedia/CMTimeMapping/source)

A time range on the source timeline.

[`target`](/documentation/CoreMedia/CMTimeMapping/target)

A time range on the target timeline.

### Type Properties

[`invalid`](/documentation/CoreMedia/CMTimeMapping/invalid)

An invalid time mapping.



---

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)