createChatroomVideoMessage static method
创建视频消息
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',
});
}