createChatroomVideoMessage method Null safety

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}
)

Create a video message.

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',
  });
}