---
title: timeMapping
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayeritemsegment/timemapping
---

# timeMapping

The time mapping for this segment.

## Declaration

```swift
var timeMapping: CMTimeMapping { get }
```

## Discussion

Discussion The time mapping’s source time range represents the start time and duration in the segment source’s timeline, either the primary item or interstitial event. The target time range represents the start time and duration in the integrated timeline. For interstitial events that occupy a single point, the target’s duration is zero.

## See Also

### Inspecting the segment

- [loadedTimeRanges](avfoundation/avplayeritemsegment/loadedtimeranges-879hc.md)
- [startDate](avfoundation/avplayeritemsegment/startdate.md)
- [interstitialEvent](avfoundation/avplayeritemsegment/interstitialevent.md)
