Platforms to show: All Mac Windows Linux Cross-Platform
CMTimeRangeMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
class | AVFoundation | MBS AVFoundation Plugin | 13.2 | Yes | No | No | Yes, macOS only | No |
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)
- 7 properties
- 5 methods
- method Constructor(start as CMTimeMBS, duration as CMTimeMBS)
- method ContainsTime(time as CMTimeMBS) as boolean
- method ContainsTimeRange(timeRange as CMTimeRangeMBS) as boolean
- method Description as string
- method Show
- 8 shared methods
- shared method AllTimeRange as CMTimeRangeMBS
- shared method Equal(range1 as CMTimeRangeMBS, range2 as CMTimeRangeMBS) as boolean
- shared method Intersection(range1 as CMTimeRangeMBS, range2 as CMTimeRangeMBS) as CMTimeRangeMBS
- shared method kCMTimeRangeInvalid as CMTimeRangeMBS
- shared method kCMTimeRangeZero as CMTimeRangeMBS
- shared method Make(start as CMTimeMBS, duration as CMTimeMBS) as CMTimeRangeMBS
- shared method TimeRangeFromTimeToTime(start as CMTimeMBS, EndTime as CMTimeMBS) as CMTimeRangeMBS
- shared method Union(range1 as CMTimeRangeMBS, range2 as CMTimeRangeMBS) as CMTimeRangeMBS
This class has no sub classes.
Some methods using this class:
- AVAssetTrackMBS.timeRange as CMTimeRangeMBS
- AVAudioMixInputParametersMBS.getVolumeRampForTime(time as CMTimeMBS, byref startVolume as Double, byref endVolume as Double, byref timeRange as CMTimeRangeMBS) as boolean
- AVCompositionTrackSegmentMBS.compositionTrackSegmentWithTimeRange(timeRange as CMTimeRangeMBS) as AVCompositionTrackSegmentMBS
- AVCompositionTrackSegmentMBS.Constructor(timeRange as CMTimeRangeMBS)
- AVMutableAudioMixInputParametersMBS.setVolumeRamp(startVolume as Double, endVolume as Double, timeRange as CMTimeRangeMBS)
- AVMutableCompositionMBS.appendTimeRange(timeRange as CMTimeRangeMBS, asset as AVAssetMBS, byref error as NSErrorMBS) as boolean
- AVMutableCompositionMBS.insertEmptyTimeRange(timeRange as CMTimeRangeMBS)
- AVMutableCompositionMBS.insertTimeRange(timeRange as CMTimeRangeMBS, asset as AVAssetMBS, startTime as CMTimeMBS, byref error as NSErrorMBS) as boolean
- AVMutableCompositionMBS.removeTimeRange(timeRange as CMTimeRangeMBS)
- AVMutableCompositionMBS.scaleTimeRange(timeRange as CMTimeRangeMBS, duration as CMTimeMBS)
- AVMutableCompositionTrackMBS.insertEmptyTimeRange(timeRange as CMTimeRangeMBS)
- AVMutableCompositionTrackMBS.insertTimeRange(timeRange as CMTimeRangeMBS, AssetTrack as AVAssetTrackMBS, startTime as CMTimeMBS, byref error as NSErrorMBS) as boolean
- AVMutableCompositionTrackMBS.insertTimeRanges(timeRanges() as CMTimeRangeMBS, tracks() as AVAssetTrackMBS, startTime as CMTimeMBS, byref error as NSErrorMBS) as boolean
- AVMutableCompositionTrackMBS.removeTimeRange(timeRange as CMTimeRangeMBS)
- AVMutableCompositionTrackMBS.scaleTimeRange(timeRange as CMTimeRangeMBS, duration as CMTimeMBS)
- AVMutableMovieMBS.insertEmptyTimeRange(timeRange as CMTimeRangeMBS)
- AVMutableMovieMBS.insertTimeRange(timeRange as CMTimeRangeMBS, asset as AVAssetMBS, atTime as CMTimeMBS, copySampleData as Boolean, byref Error as NSErrorMBS) as boolean
- AVMutableMovieMBS.removeTimeRange(timeRange as CMTimeRangeMBS)
- AVMutableMovieMBS.scaleTimeRange(timeRange as CMTimeRangeMBS, duration as CMTimeMBS)
- AVMutableMovieTrackMBS.insertEmptyTimeRange(timeRange as CMTimeRangeMBS)
- AVMutableMovieTrackMBS.insertTimeRange(timeRange as CMTimeRangeMBS, assetTrack as AVAssetTrackMBS, atTime as CMTimeMBS, copySampleData as Boolean, byref Error as NSErrorMBS) as boolean
Some properties using for this class:
- AVMovieTrackMBS.mediaDecodeTimeRange as CMTimeRangeMBS
- AVMovieTrackMBS.mediaPresentationTimeRange as CMTimeRangeMBS
- AVVideoCompositionInstructionMBS.timeRange as CMTimeRangeMBS
- CMTimeMappingMBS.Source as CMTimeRangeMBS
- CMTimeMappingMBS.Target as CMTimeRangeMBS
- AVAssetExportSessionMBS.timeRange as CMTimeRangeMBS
- AVAssetReaderMBS.timeRange as CMTimeRangeMBS
- AVMutableTimedMetadataGroupMBS.timeRange as CMTimeRangeMBS
- AVMutableVideoCompositionInstructionMBS.timeRange as CMTimeRangeMBS
Some events for this class:
- AVFoundationMBS.videoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange(videoComposition as AVVideoCompositionMBS, timeRange as CMTimeRangeMBS) as boolean
Some examples which use this class:
- /AVFoundation/Add text to video
- /AVFoundation/AVAssetExportSessionMBS test
- /AVFoundation/AVAssetExportSessionMBS test batch
- /AVFoundation/Merge and Crop Videos
- /AVFoundation/Merge Audio and Video
- /AVFoundation/Overlay video track with picture
The items on this page are in the following plugins: MBS AVFoundation Plugin.
CMTimeMBS - CNContactFetchRequestMBS

Links
MBS Xojo tutorial videos