sendVideoMessage method

void sendVideoMessage(
  1. String filePath,
  2. int duration,
  3. int width,
  4. int height,
  5. String displayName, {
  6. NIMMessage? replyMsg,
})

Implementation

void sendVideoMessage(
    String filePath, int duration, int width, int height, String displayName,
    {NIMMessage? replyMsg}) {
  MessageBuilder.createVideoMessage(
          sessionId: sessionId,
          sessionType: sessionType,
          filePath: filePath,
          duration: duration,
          width: width,
          height: height,
          displayName: displayName)
      .then((value) {
    if (value.isSuccess) {
      sendMessage(value.data!, replyMsg: replyMsg);
    }
  });
}