EMVideoMessageBody constructor

EMVideoMessageBody({
  1. required String localPath,
  2. String? displayName,
  3. int? duration = 0,
  4. int? fileSize,
  5. String? thumbnailLocalPath,
  6. double? height,
  7. double? width,
})

创建一条视频消息。

Param localPath 视频文件本地路径。

Param displayName 视频名称。

Param duration 视频时长,单位为秒。

Param fileSize 视频文件大小,单位是字节。

Param thumbnailLocalPath 视频缩略图本地路径。

Param height 视频高度,单位是像素。

Param width 视频宽度,单位是像素。

Implementation

EMVideoMessageBody({
  required String localPath,
  String? displayName,
  this.duration = 0,
  int? fileSize,
  this.thumbnailLocalPath,
  this.height,
  this.width,
}) : super(
        localPath: localPath,
        displayName: displayName,
        fileSize: fileSize,
        type: MessageType.VIDEO,
      );