I’m having trouble recording the screen in custom UI mode, and there are two potential issues, neither of which I can figure out. First is that startRecording is failing with ZoomSDKError_InvalidPrameter. I figured this is probably the timestamp, so I’ve tried numerous approaches to the timestamp with no luck. Here’s my Swift code (captureMovieFilePath is a full string local file path):
var time: time_t = Int(Date().timeIntervalSince1970)
let error = recordController.startRecording(&time, saveFilePath: captureMovieFilePath)
The other problem I’m having that makes me suspicious of the prior problem is this:
ZoomSDKError allowRecordingSupported = [[[[ZoomSDK sharedSDK] getMeetingService] getRecordController] allowLocalRecording:TRUE User:currentUser.userID];
That call is returning ZoomSDKError_NoPermission. Please ignore the mixing of Swift and Objective-C, this is a mixed project. I am the host and only participant in this meeting, so I don’t understand how I lack recording permission or fail giving myself permission. In OSX prefs I’ve already enabled screen recording for this app by the way. One more method call in case this helps:
ZoomSDKError isSupportLocalRecording = [[[[ZoomSDK sharedSDK] getMeetingService] getRecordController] isSupportLocalRecording:currentUser.userID];
That one is successful.
So in summary: isSupportLocalRecording is successful, allowRecordingSupported says no permission, and startRecording says invalid parameter. I’m kind of at a loss for what else to change, so any help would be greatly appreciated.