Platforms to show: All Mac Windows Linux Cross-Platform
AVAssetTrackMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVAssetTrack adopts the AVAsynchronousKeyValueLoading protocol. You should use methods in the protocol to access a track's properties without blocking the current thread. To cancel load requests for all keys of AVAssetTrack you must message the parent AVAsset object (for example, [track.asset cancelLoading]).
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 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. |
Sub classes:
Some methods using this class:
- AVAssetMBS.tracks as AVAssetTrackMBS()
- AVAssetMBS.tracksWithMediaType(mediaType as string) as AVAssetTrackMBS()
- AVAssetMBS.trackWithTrackID(PersistentTrackID as Integer) as AVAssetTrackMBS
- AVAssetReaderSampleReferenceOutputMBS.assetReaderSampleReferenceOutputWithTrack(track as AVAssetTrackMBS) as AVAssetReaderSampleReferenceOutputMBS
- AVAssetReaderTrackOutputMBS.track as AVAssetTrackMBS
- AVAssetReaderVideoCompositionOutputMBS.assetReaderVideoCompositionOutputWithVideoTracks(videoTracks() as AVAssetTrackMBS, videoSettings as dictionary) as AVAssetReaderVideoCompositionOutputMBS
- AVMutableAudioMixInputParametersMBS.audioMixInputParametersWithTrack(track as AVAssetTrackMBS) as AVMutableAudioMixInputParametersMBS
- AVMutableAudioMixInputParametersMBS.Constructor(track as AVAssetTrackMBS)
- AVMutableMovieTrackMBS.insertTimeRange(timeRange as CMTimeRangeMBS, assetTrack as AVAssetTrackMBS, atTime as CMTimeMBS, copySampleData as Boolean, byref Error as NSErrorMBS) as boolean
- AVMutableVideoCompositionLayerInstructionMBS.videoCompositionLayerInstructionWithAssetTrack(track as AVAssetTrackMBS) as AVMutableVideoCompositionLayerInstructionMBS
Some properties using for this class:
- AVAssetReaderSampleReferenceOutputMBS.track as AVAssetTrackMBS
- AVPlayerItemTrackMBS.assetTrack as AVAssetTrackMBS
Some examples using this class:
- /AVFoundation/AVAssertTrack samples
- /AVFoundation/Donut Video Player
- /AVFoundation/Donut Video Player Overlay
- /AVFoundation/Merge and Crop Videos
- /AVFoundation/Merge Audio and Video
- /AVFoundation/Simple Player
- /AVFoundation/Transcode
- /AVFoundation/Transcode batch
- /AVFoundation/Transcode parallel
- /AVFoundation/Transparent Player
Blog Entries
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVAssetTrackGroupMBS - AVAssetTrackSegmentMBS