sendVideoMessage method

Future<V2TimValueCallback<V2TimMessage>> sendVideoMessage({
  1. required String videoFilePath,
  2. required String receiver,
  3. required String type,
  4. String? snapshotPath,
  5. int? duration,
  6. String? groupID,
  7. int? priority,
  8. bool? onlineUserOnly,
})

发送视频消息

Implementation

Future<V2TimValueCallback<V2TimMessage>> sendVideoMessage({
  required String videoFilePath,
  required String receiver,
  required String type,
  String? snapshotPath,
  int? duration,
  String? groupID,
  int? priority,
  bool? onlineUserOnly,
}) async {
  return V2TimValueCallback<V2TimMessage>.fromJson(
    _formatJson(
      await _channel.invokeMethod(
        "sendVideoMessage",
        _buildParam(
          {
            "videoFilePath": videoFilePath,
            "receiver": receiver,
            "snapshotPath": snapshotPath,
            "duration": duration,
            "type": type,
            "groupID": groupID,
            "priority": priority,
            "onlineUserOnly": onlineUserOnly,
          },
        ),
      ),
    ),
  );
}