recordFile method
Record received sound to file (current implementation records to wav file)
Implementation
Future<void> recordFile(String pathToMp3File) async {
_logs?.print('Starting record file callId:$myCallId $pathToMp3File');
try {
await SiprixVoipSdk().recordFile(myCallId, pathToMp3File);
_isRecStarted = true;
} on PlatformException catch (err) {
_logs?.print('Can\'t start recording file callId:$myCallId Err: ${err.code} ${err.message}');
return Future.error((err.message==null) ? err.code : err.message!);
}
}