一只卡在这里,进度日志:
I/flutter (11784): uploaded = 5566132
I/flutter (11784): total = 7349817
下面是代码:
message = await Imclient.sendMediaMessage(
conversation,
content,
expireDuration: 0,
successCallback: (messageId, timestamp) {
print("successCallback======");
print("messageUid = ${message?.messageId}");
print("timestamp = $timestamp");
},
errorCallback: (errorCode) {
print("errorCallback======");
print("errorCode = $errorCode");
},
progressCallback: (uploaded, total) {
print("uploaded = $uploaded");
print("total = $total");
},
uploadedCallback: (remoteUrl) async {
print("remoteUrl = $remoteUrl");
},
);