Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAssetMBS class.

AVAssetMBS.ClassName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the class name for the Objective-C class.

Sometimes useful for debugging.
(Read only property)

AVAssetMBS.creationDate as AVMetadataItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates the creation date of the asset. (read-only)
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.mov")
dim a as AVAssetMBS = AVAssetMBS.assetWithFile(f)

dim creationDate as date = a.creationDate.dateValue
MsgBox creationDate.LongDate + " " + creationDate.LongTime

The value of this property may be nil.

If a creation date has been stored by the asset in a form that can be converted to an Date object, the dateValue property of the metadata item will provide an instance of NSDate. Otherwise the creation date is available only as a string value, using the AVMetadataItem stringValue method.
(Read only property)

AVAssetMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal object reference.

(Read and Write property)

AVAssetMBS.hasProtectedContent as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the asset has protected content. (read-only)

(Read only property)

AVAssetMBS.isComposable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the asset can be used within a segment of an AVCompositionTrack object. (read-only)

(Read only property)

AVAssetMBS.isExportable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the asset can be exported using AVAssetExportSession. (read-only)

(Read only property)

AVAssetMBS.isPlayable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the asset, or its URL, can be used to initialize an instance of AVPlayerItem. (read-only)

(Read only property)

AVAssetMBS.isReadable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the asset's media data can be extracted using AVAssetReader. (read-only)

(Read only property)

AVAssetMBS.lyrics as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The lyrics of the asset suitable for the current locale. (read-only)
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.mov")
dim a as AVAssetMBS = AVAssetMBS.assetWithFile(f)

MsgBox "Lyrics: "+a.lyrics

(Read only property)

Some examples using this property:

AVAssetMBS.preferredRate as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The natural rate at which the asset is to be played. (read-only)

This value is often, but not always, 1.0.
(Read only property)

AVAssetMBS.preferredVolume as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The preferred volume at which the audible media of asset is to be played. (read-only)

This value is often, but not always, 1.0.
(Read only property)

AVAssetMBS.providesPreciseDurationAndTiming as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the asset provides precise timing. (read-only)
Example
dim options as new Dictionary
options.value(AVFoundationMBS.AVURLAssetPreferPreciseDurationAndTimingKey) = true
dim f as FolderItem = SpecialFolder.Desktop.Child("test.mov")
dim a as AVAssetMBS = AVURLAssetMBS.URLAssetWithFile(f, options)

MsgBox str(a.duration.Seconds)+" seconds with precision: "+str(a.providesPreciseDurationAndTiming)

You can set the degree of precision required for timing-related properties at initialization time for assets initialized with URLs (see AVURLAssetPreferPreciseDurationAndTimingKey in AVURLAsset).
(Read only property)

AVAssetMBS.referenceRestrictions as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The reference restrictions being used by the receiver. (read-only)

For AVURLAsset, this property reflects the value passed in for AVURLAssetReferenceRestrictionsKey, if any.

The default value for this property is AVAssetReferenceRestrictionForbidNone. See AVURLAssetReferenceRestrictionsKey for a full discussion of reference restrictions.
(Read only property)

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


The biggest plugin in space...