startRecord method
- AudioOutputFormat recordType,
- int maxDuration
开始录制,支持参数设置录音格式和最大录音长度,默认为AAC和120s
Implementation
Future<NIMResult<bool>> startRecord(
AudioOutputFormat recordType, int maxDuration) async {
return _platform.startAudioRecord(recordType, maxDuration);
}