Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAssetTrackMBS class.

AVAssetTrackMBS.asset as AVAssetMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The asset of which the track is a part. (read-only)

(Read only property)

AVAssetTrackMBS.estimatedDataRate as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The estimated data rate of the media data referenced by the track, in bits per second. (read-only)

(Read only property)

AVAssetTrackMBS.extendedLanguageTag as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The language tag associated with the track, as an RFC 4646 language tag. (read-only)

The value may be nil if no language tag is indicated.
(Read only property)

AVAssetTrackMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal object reference.

(Read and Write property)

AVAssetTrackMBS.isEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the track is enabled according to state stored in its container or construct. (read-only)

(Read only property)

AVAssetTrackMBS.isPlayable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the track is playable in the current environment. (read-only)

If the value of this property is true, an AVPlayerItemTrack of an AVPlayerItem initialized with the the track's asset can be enabled for playback.
Available in OS X v10.8 and later.
(Read only property)

AVAssetTrackMBS.isSelfContained as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the track references sample data only within its storage container. (read-only)

The value is true if the track references sample data only within its storage container, otherwise it is false.
(Read only property)

AVAssetTrackMBS.languageCode as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The language associated with the track, as an ISO 639-2/T language code. (read-only)

The value may be "" if no language is indicated.
(Read only property)

AVAssetTrackMBS.mediaType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The media type for the track. (read-only)

For possible values, see "Media Types" in AV Foundation Constants Reference.
(Read only property)

AVAssetTrackMBS.naturalSize as CGSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The natural dimensions of the media data referenced by the track. (read-only)
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.m4v")
dim m as new AVMovieMBS(f, nil)

dim videotracks() as AVMovieTrackMBS = m.movieTracksWithMediaCharacteristic(AVFoundationMBS.AVMediaCharacteristicFrameBased)

for each videotrack as AVMovieTrackMBS in videotracks
dim s as CGSizeMBS = videotrack.naturalSize
MsgBox str(s.Width)+" x "+ str(s.Height)
next

(Read only property)

AVAssetTrackMBS.naturalTimeScale as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
A timescale in which time values for the track can be operated upon without extraneous numerical conversion. (read-only)

(Read only property)

AVAssetTrackMBS.nominalFrameRate as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The frame rate of the track, in frames per second. (read-only)
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.mp4")
dim a as AVAssetMBS = AVAssetMBS.assetWithFile(f)
dim tracks() as AVAssetTrackMBS = a.tracksWithMediaCharacteristic(AVFoundationMBS.AVMediaCharacteristicFrameBased)

for each t as AVAssetTrackMBS in tracks
MsgBox str(t.nominalFrameRate)
next

(Read only property)

AVAssetTrackMBS.preferredVolume as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The volume specified in the track's storage container as the preferred volume of the audible media data. (read-only)

(Read only property)

AVAssetTrackMBS.totalSampleDataLength as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The total number of bytes of sample data required by the track. (read-only)

(Read only property)

AVAssetTrackMBS.trackID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The persistent unique identifier for this track of the asset. (read-only)

(Read only property)

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


The biggest plugin in space...