Translates a duration through a mapping from
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
- Core Media
The duration to be translated.
The time range from which duration is translated.
The time range to which duration is mapped to .
CMTime structure representing the translated duration.
The duration will be scaled in proportion to the ratio between the ranges' durations:
dur does not have the epoch zero, an invalid
CMTime will be returned.