Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVURLAssetMBS class.

AVURLAssetMBS.compatibleTrackForCompositionTrack(compositionTrack as AVCompositionTrackMBS) as AVAssetTrackMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an asset track from which any time range can be inserted into a given composition track.

compositionTrack: The composition track for which a compatible AVAssetTrack object is requested.

Returns an asset track managed by the receiver from which any time range can be inserted into a given composition track.

You insert the track into using insertTimeRange (AVMutableCompositionTrack). This method is the logical complement of mutableTrackCompatibleWithTrack.

AVURLAssetMBS.Constructor(File as folderitem, options as dictionary = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes an asset for inspection of a resource referenced by a given file.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.mov")
dim u as AVURLAssetMBS = new AVURLAssetMBS(f)
MsgBox str(U.duration.Seconds)+" seconds long"

file: A folderitem that references the container file to be represented by the asset.
options: A dictionary that contains options for the initialization of the asset.

See also:

AVURLAssetMBS.Constructor(URL as string, options as dictionary = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes an asset for inspection of a resource referenced by a given URL.

URL: An URL that references the container file to be represented by the asset.
options: A dictionary that contains options for the initialization of the asset.

See also:

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


The biggest plugin in space...