# ZoomSDK MacOS Recording

**URL:** <https://devforum.zoom.us/t/zoomsdk-macos-recording/48116>\
**Category:** macOS\
**Created:** [April 16, 2021, 7:37am UTC](https://devforum.zoom.us/t/zoomsdk-macos-recording/48116 "2021-04-16T07:37:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkr.noel](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hkr.noel/32/10621_2.png) [@hkr.noel](https://devforum.zoom.us/u/hkr.noel)\
**Post date:** [April 16, 2021, 7:37am UTC](https://devforum.zoom.us/t/zoomsdk-macos-recording/48116/1 "2021-04-16T07:37:20Z")

</div>

**Device (please complete the following information):**

- Device: [e.g. Apple MacBook Pro (13-inch, M1)]
- OS: [e.g. macOS Big Sur 11.2.1]

Im using this code to record the video and audio for all participants but was able to record only the audio no video (Black Screen) any idea what could be causing this issue ?  
-(void)startRecord {  
NSArray \*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);  
NSString \*documentsDirectory = [paths objectAtIndex:0];

```
time_t timeStamp = [[NSDate date] timeIntervalSinceNow];
ZoomSDKMeetingRecordController *record = [[[ZoomSDK sharedSDK] getMeetingService] getRecordController];
[record setDelegate:self];
ZoomSDKError canStartRecording = [record canStartRecording:NO];
if (canStartRecording == ZoomSDKError_Success) {
    NSLog(@"canStartRecordingSuccess");
}

ZoomSDKError isSupportLocalRecording = [record isSupportLocalRecording:self.mySelfUserInfo.getUserID];
if (isSupportLocalRecording == ZoomSDKError_Success) {
    NSLog(@"isSupportLocalRecordingSuccess");
}

ZoomSDKError allowRecordingSupported = [record allowLocalRecording:YES User:self.mySelfUserInfo.getUserID];
if (allowRecordingSupported == ZoomSDKError_Success) {
    NSLog(@"allowRecordingSupportedSuccess");
}

[record startRecording:&timeStamp saveFilePath:documentsDirectory];
ZoomSDKError error = [record requestCustomizedLocalRecordingNotification:YES];
if (error == ZoomSDKError_Success) {
    NSLog(@"requestCustomizedLocalRecordingNotificationSuccess");
}

```

}

- (void)onRecord2MP4Done:(BOOL)success Path:(NSString \*)recordPath {  
if (success) {  
NSString \*filePath = [NSString stringWithFormat:@"%@meetingrec\_0.mp4",recordPath];

- (void)onCustomizedRecordingSourceReceived:(CustomizedRecordingLayoutHelper \*)helper {  
ZoomSDKError error = [helper selectShareSource:RecordingLayoutMode\_VideoWall];  
if (error == ZoomSDKError\_Success) {  
NSLog(@“selectShareSourceSuccess”);  
}

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 16, 2021, 8:53pm UTC](https://devforum.zoom.us/t/zoomsdk-macos-recording/48116/2 "2021-04-16T20:53:15Z")

</div>

Hi @hkr.noel,

This post appears to be a duplicate of your reply in another thread which I have already responded to. Please try to avoid duplicate posts so that this forum remains as easy to navigate for other users as possible. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 16, 2021, 8:53pm UTC](https://devforum.zoom.us/t/zoomsdk-macos-recording/48116/3 "2021-04-16T20:53:19Z")

</div>

Closed on April 16, 2021, 8:53pm UTC


