更新时间:2024-01-24 GMT+08:00
分享

自定义本地录制路径

setLocalRecordPath

接口描述

用于自定义本地录制文件的存储路径。

注意事项

如果用户调用该接口指定了录制文件夹,则开启沙盒后不能重新创建,会写到默认路径。

方法定义

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

示例代码
1
2
3
4
5
6
7
8
9
    NSOpenPanel *select = [NSOpenPanel openPanel];
    select.canChooseFiles = NO;
    select.canChooseDirectories = YES;
    select.prompt = @"确定";
    [select beginSheetModalForWindow:self.view.window completionHandler:^(NSModalResponse result) {
        if (result == 1) {
            [[HWMSdk getOpenSDK] setLocalRecordPath:select.URL];
        }
    }];
分享:

    相关文档

    相关产品