Instance Method

removeTimeRange(_:)

Removes the specified time range from a movie.

Declaration

func removeTimeRange(_ timeRange: CMTimeRange)

Parameters

timeRange

The time range to be removed.

See Also

Modifying Time Ranges

func insertEmptyTimeRange(CMTimeRange)

Adds an empty time range to a movie.

func insertTimeRange(CMTimeRange, of: AVAsset, at: CMTime, copySampleData: Bool)

Inserts all of the tracks in a specified time range of an asset into a movie.

func scale(CMTimeRange, toDuration: CMTime)

Changes the duration of a time range in a movie.