createVideoMessage method
创建视频文件 videoFilePath 路径 type 视频类型,如 mp4 mov 等 duration 视频时长,单位 s snapshotPath 视频封面图片路径 fileName 文件名 (只有web端用到且必填) fileContent 字节数组 (只有web端用到且必填)
Implementation
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createVideoMessage({
required String videoFilePath,
required String type,
required int duration,
required String snapshotPath,
String? fileName,
Uint8List? fileContent,
}) async {
return ImFlutterPlatform.instance.createVideoMessage(
videoFilePath: videoFilePath,
type: type,
duration: duration,
snapshotPath: snapshotPath,
fileName: fileName,
fileContent: fileContent,
);
}