createVideoMessage method
创建视频消息(视频最大支持 100 MB)
参数
type 视频类型,如 mp4 mov 等
duration 视频时长,单位 s
snapshotPath 视频封面图片路径
Implementation
Future<String> createVideoMessage({
@required String videoFilePath,
@required String type,
@required int duration,
@required String snapshotPath,
}) async {
return await _channel.invokeMethod(
"createVideoMessage",
_buildParam(
{
"videoFilePath": videoFilePath,
"type": type,
},
),
);
}