sendAudioMessage method
Future
sendAudioMessage(
- String jid,
- String filePath,
- bool isRecorded,
- String duration,
- String replyMessageId, {
- String? audioFileUrl,
- String? topicId,
override
Implementation
@override
Future<dynamic> sendAudioMessage(String jid, String filePath, bool isRecorded, String duration, String replyMessageId,
{String? audioFileUrl, String? topicId}) async {
//sendAudio
dynamic audioResponse;
try {
audioResponse = await mirrorFlyMethodChannel.invokeMethod('sendAudioMessage', {
"filePath": filePath,
"jid": jid,
"isRecorded": isRecorded,
"duration": duration,
"replyMessageId": replyMessageId,
"audiofileUrl": audioFileUrl,
"topicId": topicId
});
LogMessage.d("audioResponse ", " $audioResponse");
return audioResponse;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}