Platforms to show: All Mac Windows Linux Cross-Platform

Back to iTunesLibraryMBS class.

iTunesLibraryMBS.allMediaItems as iTunesLibraryMediaItemMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iTunes MBS MacExtras Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
All media items in the library.

Some examples using this method:

iTunesLibraryMBS.allPlaylists as iTunesLibraryPlaylistMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iTunes MBS MacExtras Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
All playlists in the library.

Some examples using this method:

iTunesLibraryMBS.artworkForMediaFile(mediaFile as folderitem) as iTunesLibraryArtworkMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iTunes MBS MacExtras Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Retrieves the artwork from a media file.

mediaFile: The folderitem of the media file whose artwork should be extracted.
Returns a iTunesLibraryArtworkMBS instance represeting the media file artwork, or nil if the artwork was not found or could not be extracted.

See also:

iTunesLibraryMBS.artworkForMediaFile(mediaFileURL as string) as iTunesLibraryArtworkMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iTunes MBS MacExtras Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Retrieves the artwork from a media file.

mediaFileURL: The URL of the media file whose artwork should be extracted.
Returns a iTunesLibraryArtworkMBS instance represeting the media file artwork, or nil if the artwork was not found or could not be extracted.

See also:

iTunesLibraryMBS.Constructor(requestedAPIVersion as string, byref error as NSErrorMBS, threaded as boolean = false)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iTunes MBS MacExtras Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Initializes an instance of ITLibrary which can be used to retrieve media entities.

Upon initialization of the library class, the default iTunes database for the current user will be read and parsed.
At this point all media entities will be cached in memory until the time the object is deallocated.
requestedAPIVersion: The version of the iTunesLibrary API that the application is requesting, provide "1.0" if unknown.
error: A variable that will receive an NSError if this method fails. May be nil if caller does not care about error.

If handle is 0, the initialization failed.
Requires that your app is code signed.

Added threaded parameter in version 20.0 of the MBS Plugins. If true, the work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.

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


The biggest plugin in space...