Platforms to show: All Mac Windows Linux Cross-Platform
AVMutableCompositionTrackMBS class
Super class: AVCompositionTrackMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVCompositionTrack defines constraints for the temporal alignment of the track segments. If you set the array of track segments in a mutable composition (see trackSegments), you can test whether the segments meet the constraints using validateTrackSegments.
Subclass of the AVCompositionTrackMBS class.
- 5 properties
- property extendedLanguageTag as string
- property languageCode as string
- property naturalTimeScale as Integer
- property preferredTransform as CGAffineTransformMBS
- property preferredVolume as Double
- 9 methods
- method Constructor Private
- method Constructor(other as AVCompositionTrackMBS)
- method insertEmptyTimeRange(timeRange as CMTimeRangeMBS)
- method insertTimeRange(timeRange as CMTimeRangeMBS, AssetTrack as AVAssetTrackMBS, startTime as CMTimeMBS, byref error as NSErrorMBS) as boolean
- method insertTimeRanges(timeRanges() as CMTimeRangeMBS, tracks() as AVAssetTrackMBS, startTime as CMTimeMBS, byref error as NSErrorMBS) as boolean
- method removeTimeRange(timeRange as CMTimeRangeMBS)
- method scaleTimeRange(timeRange as CMTimeRangeMBS, duration as CMTimeMBS)
- method setCompositionTrackSegments(segments() as AVCompositionTrackSegmentMBS)
- method validateTrackSegments(trackSegments() as AVCompositionTrackSegmentMBS, byref error as NSErrorMBS) as boolean
Super class AVCompositionTrackMBS
- 2 methods
- method CompositionTrackSegments as AVCompositionTrackSegmentMBS()
- method Constructor Private
Super class AVAssetTrackMBS
- 15 properties
- property asset as AVAssetMBS
- property estimatedDataRate as Double
- property extendedLanguageTag as string
- property Handle as Integer
- property isEnabled as boolean
- property isPlayable as boolean
- property isSelfContained as boolean
- property languageCode as string
- property mediaType as string
- property naturalSize as CGSizeMBS
- property naturalTimeScale as Integer
- property nominalFrameRate as Double
- property preferredVolume as Double
- property totalSampleDataLength as Int64
- property trackID as Integer
- 17 methods
- method associatedTracksOfType(trackAssociationType as string) as AVAssetTrackMBS()
- method availableMetadataFormats as string()
- method availableTrackAssociationTypes as string()
- method commonMetadata as AVMetadataItemMBS()
- method Constructor Private
- method copy as AVAssetTrackMBS
- method formatDescriptions as CMFormatDescriptionMBS()
- method hasMediaCharacteristic(mediaCharacteristic as string) as boolean
- method loadValuesAsynchronouslyForKeys(keys() as string, tag as Variant = nil)
- method metadataForFormat(Format as string) as AVMetadataItemMBS()
- method preferredTransform as CGAffineTransformMBS
- method samplePresentationTimeForTrackTime(trackTime as CMTimeMBS) as CMTimeMBS
- method segmentForTrackTime(trackTime as CMTimeMBS) as AVAssetTrackSegmentMBS
- method segments as AVAssetTrackSegmentMBS()
- method statusOfValueForKey(key as string, byref error as NSErrorMBS) as Integer
- method timeRange as CMTimeRangeMBS
- method trackSamples(formatOptions as Dictionary) as MemoryBlock
- shared method available as boolean
- 5 constants
Load Status Constants
Constant | Value | Description |
---|---|---|
AVKeyValueStatusCancelled | 4 |
Indicates that the attempt to load the property was cancelled. |
AVKeyValueStatusFailed | 3 |
Indicates that the attempt to load the property failed. |
AVKeyValueStatusLoaded | 2 |
Indicates that the property is ready for use. |
AVKeyValueStatusLoading | 1 |
Indicates that the property is not fully loaded. |
AVKeyValueStatusUnknown | 0 |
Indicates that the property status is unknown. |
This class has no sub classes.
Some methods using this class:
- AVMutableCompositionMBS.addMutableTrackWithMediaType(mediaType as string, preferredTrackID as Integer) as AVMutableCompositionTrackMBS
- AVMutableCompositionMBS.MutableCompositionTracks as AVMutableCompositionTrackMBS()
- AVMutableCompositionMBS.mutableTrackCompatibleWithTrack(track as AVAssetTrackMBS) as AVMutableCompositionTrackMBS
Some examples using this class:
- /AVFoundation/Add text to video
- /AVFoundation/Merge Audio and Video
- /AVFoundation/Overlay video track with picture
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVMutableCompositionMBS - AVMutableMetadataItemMBS