Platforms to show: All Mac Windows Linux Cross-Platform

Back to CMTimeRangeMBS class.

CMTimeRangeMBS.AllTimeRange as CMTimeRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a special timerange to cover all times.

From zero to infinity.

Some examples using this method:

CMTimeRangeMBS.Equal(range1 as CMTimeRangeMBS, range2 as CMTimeRangeMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value that indicates whether two CMTimeRanges are identical.

range1: CMTimeRange to be compared for equality.
range2: Another CMTimeRange to be compared for equality.

Returns true if the two time ranges are identical, false if they differ.
This function returns a Boolean value that indicates whether the time ranges specified by the range1 and range2 parameters are identical.

CMTimeRangeMBS.Intersection(range1 as CMTimeRangeMBS, range2 as CMTimeRangeMBS) as CMTimeRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the intersection of two CMTimeRanges.

range1: CMTimeRange to be intersected.
range2: Another CMTimeRange to be intersected.

Returns the intersection of the two CMTimeRanges.
This function returns a CMTimeRange structure that represents the intersection of the time ranges specified by the range1 and range2 parameters. This is the largest range that both ranges include.

CMTimeRangeMBS.kCMTimeRangeInvalid as CMTimeRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Use this constant to generate an invalid CMTimeRange.

CMTimeRangeMBS.kCMTimeRangeZero as CMTimeRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Use this constant to generate an empty CMTimeRange at 0.

CMTimeRangeMBS.Make(start as CMTimeMBS, duration as CMTimeMBS) as CMTimeRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a valid CMTimeRange with the given start time and duration.
Example
dim t as CMTimeMBS = CMTimeMBS.MakeWithSeconds(5) // start at 5
dim d as CMTimeMBS = CMTimeMBS.MakeWithSeconds(10) // duration 10
dim r as CMTimeRangeMBS = CMTimeRangeMBS.Make(t,d)

start: CMTime for initializing the start field of the resulting CMTimeRange.
duration: CMTime for initializing the duration field of the resulting CMTimeRange.

Returns the resulting CMTimeRange.
The duration parameter must have an epoch of 0; otherwise an invalid time range will be returned.

CMTimeRangeMBS.TimeRangeFromTimeToTime(start as CMTimeMBS, EndTime as CMTimeMBS) as CMTimeRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a valid CMTimeRange from the given start and end time.

start: CMTime structure representing start time for creating the range.
EndTime: CMTime structure representing end time for creating the range.
Returns the resulting CMTimeRange.

CMTimeRangeMBS.Union(range1 as CMTimeRangeMBS, range2 as CMTimeRangeMBS) as CMTimeRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the union of two CMTimeRanges.

range1: CMTimeRange to be unified.
range2: Another CMTimeRange to be unified.

Returns the union of the two CMTimeRanges.

This function returns a CMTimeRange that represents the union of the time ranges specified by the range1 and range2 parameters. This is the smallest range that includes all times that are in either range.

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


The biggest plugin in space...