QNMediaRecorderConfig
Index
Core Properties
Core methods
Core Properties
filePath
- @property (nonatomic, copy, readonly) NSString * _Nullable filePath;
-
请确保路径完整精确到文件名和类型,存在有效且可读可写
支持 aac、wav、mp4
localAudioTrack
- @property (nonatomic, strong, readonly) QNLocalAudioTrack *localAudioTrack;
-
本地音频,支持麦克风或自定义音频
仅支持一路音频轨的设置,重复设置会被覆盖
localVideoTrack
- @property (nonatomic, strong, readonly) QNLocalVideoTrack *localVideoTrack;
-
本地视频,支持摄像头或自定义视频
仅支持一路视频轨的设置,重复设置会被覆盖
Core methods
initWithFilePath
- - (instancetype)initWithFilePath:(NSString *_Nullable)filePath localAudioTrack:(QNLocalAudioTrack *_Nullable)localAudioTrack localVideoTrack:(QNLocalVideoTrack *_Nullable)localVideoTrack;
-
初始化指定文件路径、本地音频录制 Track
注意:文件路径,传空默认存储在 App Container/Library/Caches/Pili/RecordFile
Parameters-
filePath: NSString
文件路径
-
localAudioTrack: QNLocalAudioTrack
本地音频 Track
-
localVideoTrack: QNLocalVideoTrack
本地视频 Track
Returns QNMediaRecorderConfig -
文档反馈
(如有产品使用问题,请 提交工单)