sendVideoMessage method
Future<V2TimValueCallback<V2TimMessage> >
sendVideoMessage({
- required String videoFilePath,
- required String receiver,
- required String type,
- required String snapshotPath,
- required int duration,
- required String groupID,
- int priority = 0,
- bool onlineUserOnly = false,
- bool isExcludedFromUnreadCount = false,
- Map<
String, dynamic> ? offlinePushInfo, - String? fileName,
- Uint8List? fileContent,
override
发送视频消息
web 端发送视频消息时需要传入fileName, fileContent字段 不支持 snapshotPath、duration、type
Implementation
@override
Future<V2TimValueCallback<V2TimMessage>> sendVideoMessage({
required String videoFilePath,
required String receiver,
required String type,
required String snapshotPath,
required int duration,
required String groupID,
int priority = 0,
bool onlineUserOnly = false,
bool isExcludedFromUnreadCount = false,
Map<String, dynamic>? offlinePushInfo,
String? fileName,
Uint8List? fileContent,
}) async {
return await _v2timMessageManager.sendVideoMessage<V2TimValueCallback<V2TimMessage>, V2TimMessage>({
"videoFilePath": videoFilePath,
"receiver": receiver,
"snapshotPath": snapshotPath,
"duration": duration,
"type": type,
"groupID": groupID,
"priority": priority,
"onlineUserOnly": onlineUserOnly,
"isExcludedFromUnreadCount": isExcludedFromUnreadCount,
"offlinePushInfo": offlinePushInfo,
"fileName": fileName,
"fileContent": fileContent
});
}