createVideoMessageFromFullPath method

Future<Message> createVideoMessageFromFullPath({
  1. required String videoPath,
  2. required String videoType,
  3. required int duration,
  4. required String snapshotPath,
  5. String? operationID,
})

创建视频消息 videoPath 路径 videoType 视频mime类型 duration 时长s snapshotPath 默认站位图路径

Implementation

Future<Message> createVideoMessageFromFullPath({
  required String videoPath,
  required String videoType,
  required int duration,
  required String snapshotPath,
  String? operationID,
}) =>
    _channel
        .invokeMethod(
            'createVideoMessageFromFullPath',
            _buildParam({
              'videoPath': videoPath,
              'videoType': videoType,
              'duration': duration,
              'snapshotPath': snapshotPath,
              "operationID": Utils.checkOperationID(operationID),
            }))
        .then((value) => Utils.toObj(value, (map) => Message.fromJson(map)));