I want to record video with the camera that is in the phone: I’m writing a simple timer that I’m trying get to record video while displaying the time (I don’t want to show a video preview while displaying the time).
declare sub startRecordingToOutputFileURL_ lib AVFoundationLib selector "startRecordingToOutputFileURL:recordingDelegate:" (obj_id as ptr, outputFileURL as ptr, del as ptr)
startRecordingToOutputFileURL_(self, outputFileURL, del)
That delegate (and a lot of the video recording classes) aren’t included in iOSKit because they are not thread safe within Xojo. Would you be able to try passing nil for the delegate and see what happens? If that doesn’t work some tricks may be possible to make it work.
Edit:
To add to what I said, most of AVFoundation is actually unsafe and there is just a small amount of safe classes included in iOSKit from the monster of a framework provided by Apple. Until Xojo supports real threading or some way to call into the framework safely without crashing your app, many of these classes may not be possible to use in Xojo