Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVURLAssetMBS class.

AVURLAssetMBS.audiovisualMIMETypes as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an array of the MIME types the AVURLAsset class understands.
Example
MsgBox Join(AVURLAssetMBS.audiovisualMIMETypes, EndOfLine)

See also MimeTypeToFileExtensionMBS function.

AVURLAssetMBS.audiovisualTypes as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an array of the file types the AVURLAsset class understands.
Example
MsgBox Join(AVURLAssetMBS.audiovisualTypes, EndOfLine)

AVURLAssetMBS.isPlayableExtendedMIMEType(extendedMIMEType as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value indicating whether an asset is playable with the codec(s) and container type specified in a given extended MIME type.

Returns true if an asset is playable with the codec(s) and container type specified in extendedMIMEType, otherwise false.
See also FileExtensionToMimeTypeMBS function.

AVURLAssetMBS.URLAssetWithFile(File as folderitem, options as dictionary = nil) as AVURLAssetMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns 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 = AVURLAssetMBS.URLAssetWithFile(f)

MsgBox str(u.duration.Seconds)+" seconds video."

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.

Returns an asset initialized for inspection of a resource referenced by folderitem.

Some examples using this method:

AVURLAssetMBS.URLAssetWithURL(URL as string, options as dictionary = nil) as AVURLAssetMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns 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.

Returns an asset initialized for inspection of a resource referenced by URL.

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


The biggest plugin in space...