startRecord method Null safety
- AudioOutputFormat recordType,
- int maxDuration
Start recording. Setting the recording format and maximum recording length is supported. If no parameters are passed in, the recording format and the maximum recording length will be AAC and 120s respectively by default.
Implementation
Future<NIMResult<bool>> startRecord(
AudioOutputFormat recordType, int maxDuration) async {
return _platform.startAudioRecord(recordType, maxDuration);
}