insertEmptyTimeRange(_:)
Adds or extends an empty time range within all tracks of the composition.
Declaration
func insertEmptyTimeRange(_ timeRange: CMTimeRange)Parameters
- timeRange:
The empty time range to insert.
Discussion
Inserting an empty time range pushes out existing content by the time range’s duration. Use this method to reserve a time range in the composition for a subsequently created track to present its media.