Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

AVMetadataItemMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: The constructor.

Feedback, Comments & Corrections

AVMetadataItemMBS.copy as AVMetadataItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Creates a copy of the object.

Feedback, Comments & Corrections

AVMetadataItemMBS.loadValuesAsynchronouslyForKeys(keys() as string, tag as Variant = nil)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Tells the asset to load the values of any of the specified keys that are not already loaded.
Notes:
keys: An array containing the required keys.

Calls AVFoundationMBS.MetadataItemLoadValuesAsynchronouslyForKeysFinished on completion.
The completion event will be invoked exactly once per invocation of this method:

  • Synchronously if an I/O error or other format-related error occurs immediately.
  • Asynchronously at a subsequent time if a loading error occurs at a later stage of processing, or if cancelLoading is invoked on an AVAsset instance.

The completion states of the keys you specify in keys are not necessarily the same—some may be loaded, and others may have failed. You must check the status of each key individually.

If you want to receive error reporting for loading that's still pending, you can call this method at any time—even after an asset has begun to load data for operations in progress or already completed. If a fatal error has already occurred, the completion event is invoked synchronously.

Feedback, Comments & Corrections

AVMetadataItemMBS.mutableCopy as AVMutableMetadataItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 15.1 Yes No No Yes, macOS only No
Function: Creates a mutable copy.

Feedback, Comments & Corrections

AVMetadataItemMBS.statusOfValueForKey(key as string, byref error as NSErrorMBS) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Reports whether the value for a given key is immediately available without blocking. (required)
Notes:
key: The key whose status you want.
error: If the status of the value for the key is AVKeyValueStatusFailed, upon return contains an NSError object that describes the failure that occurred.

Returns the current loading status of the value for key. For possible values, see "Protocol Methods."

You use this method to determine the availability of the value for a key. This method does not cause an asset to load the value of a key that's not yet available. To request values for keys that may not already be loaded without blocking, use loadValuesAsynchronouslyForKeys and wait for invocation of the completion handler to be informed of availability.

Feedback, Comments & Corrections

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





Links
MBS Xojo blog