sendVideoMessage method Null safety
- @Deprecated('sendVideoMessage has been deprecated since 3.6.0, we separate the creation and sending of messages, please use createVideoMessage to create a message, and then call sendMessage to send the message')
- {required String videoFilePath,
- required String receiver,
- required String type,
- required String snapshotPath,
- required int duration,
- required String groupID,
- MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
- bool onlineUserOnly = false,
- bool isExcludedFromUnreadCount = false,
- OfflinePushInfo? offlinePushInfo,
- String? fileName,
- Uint8List? fileContent}
@Deprecated('sendVideoMessage has been deprecated since 3.6.0, we separate the creation and sending of messages, please use createVideoMessage to create a message, and then call sendMessage to send the message')
Send a video message
When sending a video message on the web side, you need to pass in fileName, fileContent field snapshotPath, duration, type are not supported
Implementation
@Deprecated(
'sendVideoMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createVideoMessage to create a message first, and then call sendMessage to send the message')
Future<V2TimValueCallback<V2TimMessage> ;> sendVideoMessage({
required String videoFilePath,
required String receiver,
required String type,
required String snapshotPath,
required int duration,
required String groupID,
MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL ,
bool onlineUserOnly = false,
bool isExcludedFromUnreadCount = false,
OfflinePushInfo? offlinePushInfo,
String? fileName,
Uint8List? fileContent,
}) async {
return ImFlutterPlatform.instance.sendVideoMessage(
videoFilePath: videoFilePath,
receiver: receiver,
type: type,
snapshotPath: snapshotPath,
duration: duration,
groupID: groupID,
priority: EnumUtils.convertMessagePriorityEnum(priority),
onlineUserOnly: onlineUserOnly ,
isExcludedFromUnreadCount: isExcludedFromUnreadCount,
offlinePu shInfo: offlinePushInfo?.toJson(),
fileName: fileName,
fileContent: fileContent,
);
}