sendVideoMessage method

  1. @Deprecated('sendVideoMessage自3.6.0开始弃用,我们将创建消息与发送消息分离,请先使用createVideoMessage创建消息,再调用sendMessage发送消息')
Future<V2TimValueCallback<V2TimMessage>> sendVideoMessage({
  1. required String videoFilePath,
  2. required String receiver,
  3. required String type,
  4. required String snapshotPath,
  5. required int duration,
  6. required String groupID,
  7. MessagePriorityEnum? priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
  8. bool onlineUserOnly = false,
  9. bool isExcludedFromUnreadCount = false,
  10. OfflinePushInfo? offlinePushInfo,
  11. String? fileName,
  12. Uint8List? fileContent,
})

发送视频消息

web 端发送视频消息时需要传入fileName, fileContent字段 不支持 snapshotPath、duration、type

Implementation

@Deprecated(
    'sendVideoMessage自3.6.0开始弃用,我们将创建消息与发送消息分离,请先使用createVideoMessage创建消息,再调用sendMessage发送消息')
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: priority!.index,
    onlineUserOnly: onlineUserOnly,
    isExcludedFromUnreadCount: isExcludedFromUnreadCount,
    offlinePushInfo: offlinePushInfo?.toJson(),
    fileName: fileName,
    fileContent: fileContent,
  );
}