createVideoMessage method

  1. @override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createVideoMessage({
  1. required String videoFilePath,
  2. required String type,
  3. required int duration,
  4. required String snapshotPath,
  5. dynamic inputElement,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createVideoMessage({
  required String videoFilePath,
  required String type,
  required int duration,
  required String snapshotPath,
  dynamic inputElement,
}) async {
  Map<String, dynamic> param = {
    "videoFilePath": videoFilePath,
    "type": type,
    "duration": duration,
    "snapshotPath": snapshotPath,
  };
  var resp = V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createVideoMessage",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("createVideoMessage", param, resp.toLogString());
  return resp;
}