startRecord method

Future<NIMResult<bool>> startRecord(
  1. AudioOutputFormat recordType,
  2. int maxDuration
)

开始录制,支持参数设置录音格式和最大录音长度,默认为AAC和120s

Implementation

Future<NIMResult<bool>> startRecord(
    AudioOutputFormat recordType, int maxDuration) async {
  return _platform.startAudioRecord(recordType, maxDuration);
}