createChatroomVideoMessage static method

Future<NIMResult<NIMChatroomMessage>> createChatroomVideoMessage(
  1. {required String roomId,
  2. required String filePath,
  3. required int duration,
  4. required int width,
  5. required int height,
  6. String? displayName,
  7. NIMNosScene nosScene = NIMNosScenes.defaultIm}
)

创建视频消息

Implementation

static Future<NIMResult<NIMChatroomMessage>> createChatroomVideoMessage({
  required String roomId,
  required String filePath,
  required int duration,
  required int width,
  required int height,
  String? displayName,
  NIMNosScene nosScene = NIMNosScenes.defaultIm,
}) async {
  return NimCore.instance.chatroomService._createMessage({
    'roomId': roomId,
    'filePath': filePath,
    'duration': duration,
    'width': width,
    'height': height,
    'displayName': displayName,
    'nosScene': nosScene,
    'messageType': 'video',
  });
}