AVURLAssetMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem