Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVCompositionTrackSegmentMBS class.

AVCompositionTrackSegmentMBS.Constructor(timeRange as CMTimeRangeMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a track segment that presents an empty track segment.

timeRange: The time range of the empty track segment.

This method invokes Constructor with an empty URL, a trackID of kCMPersistentTrackID_Invalid, a time mapping with source.start and source.duration equal to kCMTimeInvalid, and with a target equal to timeRange.

This is the standard low-level representation of an empty track segment.

AVCompositionTrackSegmentMBS.isEmpty as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the segment is empty. (read-only)

An empty segment has a valid target time range but sourceURL is nil and the source start time is kCMTimeInvalid; all other fields are undefined.

AVCompositionTrackSegmentMBS.sourceTrackID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The track ID of the container file of the media presented by the track segment. (read-only)

AVCompositionTrackSegmentMBS.sourceURL as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The container file of the media presented by the track segment. (read-only)

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...