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.


The biggest plugin in space...