Platforms to show: All Mac Windows Linux Cross-Platform

Back to CMTimeRangeMBS class.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new range with given values.
Example
dim t as CMTimeMBS = new CMTimeMBS( 5*600, 600, kCMTimeFlags_Valid) // start at 5
dim d as CMTimeMBS = new CMTimeMBS(10*600, 600, kCMTimeFlags_Valid) // duration 10
dim r as CMTimeRangeMBS = new CMTimeRangeMBS(t,d)

CMTimeRangeMBS.ContainsTime(time as CMTimeMBS) 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 a time is contained within a time range.

time: CMTime to be tested for inclusion.
Returns true if the specified time is contained within the specified time range, false if it is not.

This function returns a Boolean value that indicates whether the time specified by the time parameter is contained within the range specified by the range parameter.

CMTimeRangeMBS.ContainsTimeRange(timeRange as CMTimeRangeMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean that indicates whether a given time range is contained within another time range.

range1: The CMTimeRange being interrogated.
range2: CMTimeRange to be tested for inclusion.

Returns true if the second time range is contained within the first time range, false if it is not.
This function returns a Boolean value that indicates whether the time range specified by the range1 parameter contains the range specified by the range2 parameter.

CMTimeRangeMBS.Description as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a String with a description of a CMTimeRange.

CMTimeRangeMBS.Show

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Prints a description of the CMTimeRange to stderr (similar to CFShow).

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


The biggest plugin in space...