Help Center> Meeting> Client SDK Reference> macOS SDK> APIs> Basic Settings> Customizing a Local Recording Path
Updated on 2023-03-23 GMT+08:00

Customizing a Local Recording Path

setLocalRecordPath

API Description

This API is used to customize the path for storing local recording files.

Precautions

If a user specifies a recording folder in this API, another recording folder cannot be created after the sandbox is enabled and will be written to the default path.

Method Definition

1
- (void)setLocalRecordPath:(NSURL *)url;

Sample Code
1
2
3
4
5
6
7
8
9
    NSOpenPanel *select = [NSOpenPanel openPanel];
    select.canChooseFiles = NO;
    select.canChooseDirectories = YES;
    select.prompt = @"OK";
    [select beginSheetModalForWindow:self.view.window completionHandler:^(NSModalResponse result) {
        if (result == 1) {
            [[HWMSdk getOpenSDK] setLocalRecordPath:select.URL];
        }
    }];