MsgItem
示例
var conf = getConf(); 获取会议对象
//发送消息
var msgItem = {
iType: jSWProtocol.IMMSGTypes.Text,
data: "这是个测试数据,用于测试发送"
};
var msgItems = [msgItem];
function confIMSendHasResultHandler(options, response){
//发送有结果了
}
var rc = conf.swConfIMSend({
msgitems: msgItem,
callback: confIMSendHasResultHandler,
tag: null
});
//rc 发送的结果
//接收文件
var msgItem = {
iType: jSWProtocol.IMMSGTypes.File,
data: "",
nruid: "NRU_asd6f51321sdf"
};
var msgItems = [msgItem];
function confIMRecvHasResultHandler(options, response){
//下载有结果了
}
function confIMRecvProgressHandler(options, response){
//下载进度
}
var rc = conf.swConfIMSend({
msgitems: msgItem,
callback: confIMRecvHasResultHandler,
pcallback: confIMRecvProgressHandler,
tag: null
});
//rc 文件接收