EMMessage.createVideoSendMessage constructor

EMMessage.createVideoSendMessage({
  1. required String username,
  2. required String filePath,
  3. String displayName = '',
  4. int duration = 0,
  5. String thumbnailLocalPath = '',
  6. double width = 0,
  7. double height = 0,
})

构造发送的视频消息

Implementation

EMMessage.createVideoSendMessage({
  required String username,
  required String filePath,
  String displayName = '',
  int duration = 0,
  String thumbnailLocalPath = '',
  double width = 0,
  double height = 0,
}) : this.createSendMessage(
          to: username,
          body: EMVideoMessageBody(
            localPath: filePath,
            displayName: displayName,
            duration: duration,
            thumbnailLocalPath: thumbnailLocalPath,
            width: width,
            height: height,
          ));