Instance Method

scaleTimeRange:toDuration:

Changes the duration of all tracks in a given time range.

Declaration

- (void)scaleTimeRange:(CMTimeRange)timeRange toDuration:(CMTime)duration;

Parameters

timeRange

The time range of the composition to be scaled.

duration

The new duration of timeRange.

Discussion

Each track segment affected by the scaling operation will be presented at a rate equal to source.duration / target.duration of its resulting time mapping.

See Also

Managing Time Ranges

- insertEmptyTimeRange:

Adds or extends an empty time range within all tracks of the composition.

- insertTimeRange:ofAsset:atTime:error:

Inserts all the tracks within a given time range of a specified asset into the receiver.

- removeTimeRange:

Removes a specified time range from all tracks of the composition.