createVideoMessage static method
Object
createVideoMessage(
{ - required String userID,
- required dynamic file,
- String convType = 'C2C',
- required dynamic progressCallback,
- bool needReadReceipt = false,
- String cloudCustomData = '',
- int priority = 0,
})
Implementation
static Object createVideoMessage(
{required String userID,
required file,
String convType = 'C2C',
required progressCallback,
bool needReadReceipt = false,
String cloudCustomData = '',
int priority = 0}) {
final textParams = {
"to": userID,
"conversationType": convType,
"cloudCustomData": cloudCustomData,
"needReadReceipt": needReadReceipt,
"priority": MessagePriorityWeb.convertMsgPriorityToWeb(priority),
"payload": mapToJSObj({"file": file}),
"onProgress": progressCallback
};
return mapToJSObj(textParams);
}