createVideoMessage method Null safety
Create video file videoFilePath path type video type, such as mp4 mov etc. duration video duration, unit s snapshotPath video cover image path fileName file name (onlyweb sideused and required) fileContent byte array (onlyweb sideused and required)
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,
);
}