Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

/AVFoundation/Thumbnail sync
Function:
Required plugins for this example: MBS AVFoundation Plugin, MBS MacBase Plugin, MBS MacCG Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /AVFoundation/Thumbnail sync
This example is the version from Fri, 26th Dec 2013.
Project "Thumbnail sync.rbp"
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

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS FileMaker Plugins