createVideoMessage method

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

Create a video message videoPath Path videoType Video MIME type duration Duration in seconds snapshotPath Default snapshot image path

Implementation

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