getMediaUrl method
Save media content stream that could be streamed or downloaded by client.
Provided file could be an existing file and a none existing file.
Implementation
Future<String?> getMediaUrl() async {
try {
final uMessageIndex = messageIndex;
if (uMessageIndex != null) {
final result = await TwilioConversations()
.messageApi
.getMediaContentTemporaryUrl(conversationSid, uMessageIndex);
return result;
}
} on PlatformException catch (err) {
throw TwilioConversations.convertException(err);
}
}