EMMessage.createVideoSendMessage constructor

EMMessage.createVideoSendMessage(String filePath, int timeLength, String userName)

创建视频类型消息 filePath: 视频片断路径; timeLength: 语音时长; userName: 接收方id

Implementation

EMMessage.createVideoSendMessage(String filePath,
    int timeLength, String userName)
    : this(
          direction: Direction.SEND,
          type: EMMessageType.VIDEO,
          body: EMVideoMessageBody(File(filePath),timeLength),
          to: userName);