Example: /AVFoundation/Query metadata

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

/AVFoundation/Query metadata


Required plugins for this example: MBS AVFoundation Plugin, MBS MacCG Plugin, MBS MacCF Plugin, MBS Main Plugin, MBS MacBase Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /AVFoundation/Query metadata

This example is the version from Fri, 26th Dec 2013.

Project "Query metadata.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
EventHandler Sub Open() app.AutoQuit = true // pick some movie dim f as FolderItem = SpecialFolder.Desktop.Child("test.mov") if not f.Exists then Break MsgBox "pLease check movie path in code." Return end if dim a as AVAssetMBS = AVAssetMBS.assetWithFile(f) if a = nil then MsgBox "Failed to open asset." Return end if // show duration MsgBox str(a.duration.Seconds)+" seconds" // show creation date dim creationDate as date = a.creationDate.dateValue MsgBox creationDate.LongDate + " " + creationDate.LongTime // show lyrics MsgBox "Lyrics: "+a.lyrics // show size dim size as CGSizeMBS = a.naturalSize MsgBox str(size.Width)+" x "+str(size.Height) // shows metadata dim items() as AVMetadataItemMBS = a.commonMetadata for each item as AVMetadataItemMBS in items MsgBox item.commonKey+": "+item.stringValue next End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
End Project

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


💬 Ask a question or report a problem