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 {
  return V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createVideoMessage",
        buildMessageMangerParam(
          {
            "videoFilePath": videoFilePath,
            "type": type,
            "duration": duration,
            "snapshotPath": snapshotPath,
          },
        ),
      ),
    ),
  );
}