sendVideoMessage method
- {required String sessionId,
- required NIMSessionType sessionType,
- required String filePath,
- int? fileSize,
- required int duration,
- required int width,
- required int height,
- required String displayName,
- String? base64,
- NIMNosScene nosScene = NIMNosScenes.defaultIm,
- MessageAction? action}
发送视频消息
base64
字段为web端专用,web端filePath
可传空字符串
Implementation
Future<NIMResult<NIMMessage>> sendVideoMessage({
required String sessionId,
required NIMSessionType sessionType,
required String filePath,
int? fileSize,
required int duration,
required int width,
required int height,
required String displayName,
String? base64,
NIMNosScene nosScene = NIMNosScenes.defaultIm,
MessageAction? action,
}) async {
var message = NIMMessage.videoEmptyMessage(
sessionId: sessionId,
sessionType: sessionType,
filePath: filePath,
fileSize: fileSize,
duration: duration,
base64: base64,
width: width,
height: height,
displayName: displayName,
nosScene: nosScene);
return _createMessageAndSend(message, action);
}