AVAssetMBS constants

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 AVAssetMBS class.

Load Status Constants

AVAssetMBS.AVKeyValueStatusCancelled = 4

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of the constants to indicate the load status of a property.

Indicates that the attempt to load the property was cancelled.

AVAssetMBS.AVKeyValueStatusFailed = 3

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of the constants to indicate the load status of a property.

Indicates that the attempt to load the property failed.

AVAssetMBS.AVKeyValueStatusLoaded = 2

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of the constants to indicate the load status of a property.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.m4v")
dim a as AVAssetMBS = AVAssetmbs.assetWithFile(f)

if a = nil then
MsgBox "failed to read file at all"
Return
end if

// request duration property
a.loadValuesAsynchronouslyForKeys array("duration")

dim e as NSErrorMBS
dim Status as Integer = a.statusOfValueForKey("duration", e)
while status < a.AVKeyValueStatusLoaded
// wait for loading in background
status = a.statusOfValueForKey("duration", e)
wend

// got it?
if status <> a.AVKeyValueStatusLoaded then
MsgBox "Failed to load duration."
if e <> nil then
MsgBox e.LocalizedDescription
end if

else
MsgBox str(a.duration.Seconds)+" seconds long."
end if

Indicates that the property is ready for use.

AVAssetMBS.AVKeyValueStatusLoading = 1

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of the constants to indicate the load status of a property.

Indicates that the property is not fully loaded.

AVAssetMBS.AVKeyValueStatusUnknown = 0

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of the constants to indicate the load status of a property.

Indicates that the property status is unknown.

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


💬 Ask a question or report a problem