sendVideoMessage method Null safety
- {required String sessionId,
- required NIMSessionType sessionType,
- required String filePath,
- int? fileSize,
- required int duration,
- required int width,
- required int height,
- required String displayName,
- NIMNosScene nosScene = NIMNosScenes.defaultIm,
- bool resend = false,
- MessageAction? action}
Send a video message.
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,
NIMNosScene nosScene = NIMNosScenes.defaultIm,
bool resend = false,
MessageAction? action,
}) async {
var message = NIMMessage.videoEmptyMessage(
sessionId: sessionId,
sessionType: sessionType,
filePath: filePath,
fileSize: fileSize,
duration: duration,
width: width,
height: height,
displayName: displayName,
nosScene: nosScene);
return _createMessageAndSend(message, action, resend);
}