createVideoMessage method
Future<V2TimValueCallback<V2TimMsgCreateInfoResult> >
createVideoMessage({
- required String videoFilePath,
- required String type,
- required int duration,
- required String snapshotPath,
- 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;
}