Platforms to show: All Mac Windows Linux Cross-Platform

/AVFoundation/Thumbnail sync


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

Last modified Fri, 26th Dec 2013.

You find this example project in your MBS Xojo Plugin download as a Xojo project file within the examples folder: /AVFoundation/Thumbnail sync

Download this example: Thumbnail sync.zip

Project "Thumbnail sync.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 dim g as new AVAssetImageGeneratorMBS(a) dim timeRequested as CMTimeMBS = CMTimeMBS.MakeWithSeconds(5, 30) dim actualTime as CMTimeMBS dim error as NSErrorMBS dim c as CGImageMBS = g.CGImageAtTime(timeRequested, actualTime, error) dim p as Picture = c.Picture window1.backdrop = p 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
Class Window1 Inherits Window
End Class
End Project

Download this example: Thumbnail sync.zip

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


The biggest plugin in space...