podchat-browser 12.7.2-snapshot.3 → 12.7.2-snapshot.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/call.module.js +17 -1
- package/dist/node/chat.js +1 -1
- package/dist/node/lib/constants.js +1 -0
- package/dist/podchat-browser-bundle.js +28 -20
- package/package.json +2 -2
- package/src/call.module.js +18 -0
- package/src/chat.js +1 -0
- package/src/lib/constants.js +1 -0
package/dist/node/call.module.js
CHANGED
|
@@ -2635,7 +2635,7 @@ function ChatCall(params) {
|
|
|
2635
2635
|
|
|
2636
2636
|
|
|
2637
2637
|
function shouldNotProcessChatMessage(type, threadId) {
|
|
2638
|
-
var restrictedMessageTypes = [_constants.chatMessageVOTypes.MUTE_CALL_PARTICIPANT, _constants.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT, _constants.chatMessageVOTypes.CALL_PARTICIPANT_JOINED, _constants.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT, _constants.chatMessageVOTypes.RECONNECT, _constants.chatMessageVOTypes.TURN_OFF_VIDEO_CALL, _constants.chatMessageVOTypes.TURN_ON_VIDEO_CALL, _constants.chatMessageVOTypes.DESTINED_RECORD_CALL, _constants.chatMessageVOTypes.RECORD_CALL, _constants.chatMessageVOTypes.RECORD_CALL_STARTED, _constants.chatMessageVOTypes.END_RECORD_CALL, _constants.chatMessageVOTypes.TERMINATE_CALL, _constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE // chatMessageVOTypes.END_CALL
|
|
2638
|
+
var restrictedMessageTypes = [_constants.chatMessageVOTypes.MUTE_CALL_PARTICIPANT, _constants.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT, _constants.chatMessageVOTypes.CALL_PARTICIPANT_JOINED, _constants.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT, _constants.chatMessageVOTypes.RECONNECT, _constants.chatMessageVOTypes.TURN_OFF_VIDEO_CALL, _constants.chatMessageVOTypes.TURN_ON_VIDEO_CALL, _constants.chatMessageVOTypes.DESTINED_RECORD_CALL, _constants.chatMessageVOTypes.RECORD_CALL, _constants.chatMessageVOTypes.RECORD_CALL_STARTED, _constants.chatMessageVOTypes.END_RECORD_CALL, _constants.chatMessageVOTypes.TERMINATE_CALL, _constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE, _constants.chatMessageVOTypes.CALL_RECORDING_FAILED // chatMessageVOTypes.END_CALL
|
|
2639
2639
|
];
|
|
2640
2640
|
|
|
2641
2641
|
if (!callStopQueue.callStarted && restrictedMessageTypes.includes(type)) {
|
|
@@ -3441,6 +3441,22 @@ function ChatCall(params) {
|
|
|
3441
3441
|
chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false, '', 0, messageContent, contentCount, uniqueId));
|
|
3442
3442
|
}
|
|
3443
3443
|
|
|
3444
|
+
break;
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* Type 230 CALL_RECORDING_FAILED
|
|
3448
|
+
*/
|
|
3449
|
+
|
|
3450
|
+
case _constants.chatMessageVOTypes.CALL_RECORDING_FAILED:
|
|
3451
|
+
if (chatMessaging.messagesCallbacks[uniqueId]) {
|
|
3452
|
+
chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false, '', 0, messageContent, contentCount, uniqueId));
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
_eventsModule.chatEvents.fireEvent('callEvents', {
|
|
3456
|
+
type: 'CALL_RECORDING_FAILED',
|
|
3457
|
+
result: messageContent
|
|
3458
|
+
});
|
|
3459
|
+
|
|
3444
3460
|
break;
|
|
3445
3461
|
}
|
|
3446
3462
|
};
|
package/dist/node/chat.js
CHANGED
|
@@ -462,7 +462,7 @@ break;/**
|
|
|
462
462
|
* Type 69 Get Thread All Bots
|
|
463
463
|
*/case _constants.chatMessageVOTypes.THREAD_ALL_BOTS:if(chatMessaging.messagesCallbacks[uniqueId]){chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false,'',0,messageContent,contentCount));}break;/**
|
|
464
464
|
* Type 70 Send Call Request
|
|
465
|
-
*/case _constants.chatMessageVOTypes.CALL_REQUEST:case _constants.chatMessageVOTypes.ACCEPT_CALL:case _constants.chatMessageVOTypes.REJECT_CALL:case _constants.chatMessageVOTypes.RECEIVE_CALL_REQUEST:case _constants.chatMessageVOTypes.START_CALL:case _constants.chatMessageVOTypes.END_CALL_REQUEST:case _constants.chatMessageVOTypes.END_CALL:case _constants.chatMessageVOTypes.GET_CALLS:case _constants.chatMessageVOTypes.RECONNECT:case _constants.chatMessageVOTypes.CONNECT:case _constants.chatMessageVOTypes.GROUP_CALL_REQUEST:case _constants.chatMessageVOTypes.LEAVE_CALL:case _constants.chatMessageVOTypes.ADD_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.CALL_PARTICIPANT_JOINED:case _constants.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.TERMINATE_CALL:case _constants.chatMessageVOTypes.MUTE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.RECORD_CALL:case _constants.chatMessageVOTypes.RECORD_CALL_STARTED:case _constants.chatMessageVOTypes.END_RECORD_CALL:case _constants.chatMessageVOTypes.START_SCREEN_SHARE:case _constants.chatMessageVOTypes.END_SCREEN_SHARE:case _constants.chatMessageVOTypes.DELETE_FROM_CALL_HISTORY:case _constants.chatMessageVOTypes.TURN_ON_VIDEO_CALL:case _constants.chatMessageVOTypes.TURN_OFF_VIDEO_CALL:case _constants.chatMessageVOTypes.ACTIVE_CALL_PARTICIPANTS:case _constants.chatMessageVOTypes.CALL_SESSION_CREATED:case _constants.chatMessageVOTypes.CANCEL_GROUP_CALL:case _constants.chatMessageVOTypes.DESTINED_RECORD_CALL:case _constants.chatMessageVOTypes.GET_CALLS_TO_JOIN:case _constants.chatMessageVOTypes.SWITCH_TO_GROUP_CALL_REQUEST:case _constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE:callModule.handleChatMessages(type,messageContent,contentCount,threadId,uniqueId);break;/**
|
|
465
|
+
*/case _constants.chatMessageVOTypes.CALL_REQUEST:case _constants.chatMessageVOTypes.ACCEPT_CALL:case _constants.chatMessageVOTypes.REJECT_CALL:case _constants.chatMessageVOTypes.RECEIVE_CALL_REQUEST:case _constants.chatMessageVOTypes.START_CALL:case _constants.chatMessageVOTypes.END_CALL_REQUEST:case _constants.chatMessageVOTypes.END_CALL:case _constants.chatMessageVOTypes.GET_CALLS:case _constants.chatMessageVOTypes.RECONNECT:case _constants.chatMessageVOTypes.CONNECT:case _constants.chatMessageVOTypes.GROUP_CALL_REQUEST:case _constants.chatMessageVOTypes.LEAVE_CALL:case _constants.chatMessageVOTypes.ADD_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.CALL_PARTICIPANT_JOINED:case _constants.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.TERMINATE_CALL:case _constants.chatMessageVOTypes.MUTE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.RECORD_CALL:case _constants.chatMessageVOTypes.RECORD_CALL_STARTED:case _constants.chatMessageVOTypes.END_RECORD_CALL:case _constants.chatMessageVOTypes.START_SCREEN_SHARE:case _constants.chatMessageVOTypes.END_SCREEN_SHARE:case _constants.chatMessageVOTypes.DELETE_FROM_CALL_HISTORY:case _constants.chatMessageVOTypes.TURN_ON_VIDEO_CALL:case _constants.chatMessageVOTypes.TURN_OFF_VIDEO_CALL:case _constants.chatMessageVOTypes.ACTIVE_CALL_PARTICIPANTS:case _constants.chatMessageVOTypes.CALL_SESSION_CREATED:case _constants.chatMessageVOTypes.CANCEL_GROUP_CALL:case _constants.chatMessageVOTypes.DESTINED_RECORD_CALL:case _constants.chatMessageVOTypes.GET_CALLS_TO_JOIN:case _constants.chatMessageVOTypes.SWITCH_TO_GROUP_CALL_REQUEST:case _constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE:case _constants.chatMessageVOTypes.CALL_RECORDING_FAILED:callModule.handleChatMessages(type,messageContent,contentCount,threadId,uniqueId);break;/**
|
|
466
466
|
* Type 90 Contacts Synced
|
|
467
467
|
*/case _constants.chatMessageVOTypes.CONTACT_SYNCED:_events.chatEvents.fireEvent('contactEvents',{type:'CONTACTS_SYNCED',result:messageContent});break;/**
|
|
468
468
|
* Type 101 Location Ping
|
|
@@ -39774,9 +39774,6 @@ module.exports = function (thing, encoding, name) {
|
|
|
39774
39774
|
socket,
|
|
39775
39775
|
waitForSocketToConnectTimeoutId,
|
|
39776
39776
|
socketRealTimeStatusInterval,
|
|
39777
|
-
//sendPingTimeout,
|
|
39778
|
-
socketCloseTimeout,
|
|
39779
|
-
forceCloseTimeout,
|
|
39780
39777
|
logLevel = params.logLevel,
|
|
39781
39778
|
pingController = new PingManager({waitTime: connectionCheckTimeout});
|
|
39782
39779
|
|
|
@@ -39787,28 +39784,36 @@ module.exports = function (thing, encoding, name) {
|
|
|
39787
39784
|
|
|
39788
39785
|
lastRequestTimeoutId: null,
|
|
39789
39786
|
lastReceivedMessageTime: 0,
|
|
39787
|
+
totalNoMessageCount: 0,
|
|
39788
|
+
timeoutIds: {
|
|
39789
|
+
first: null,
|
|
39790
|
+
second: null,
|
|
39791
|
+
third: null,
|
|
39792
|
+
fourth: null
|
|
39793
|
+
}
|
|
39790
39794
|
}
|
|
39791
39795
|
|
|
39792
39796
|
return {
|
|
39793
|
-
setPingTimeout() {
|
|
39794
|
-
config.lastRequestTimeoutId = setInterval(()=>{
|
|
39795
|
-
ping();
|
|
39796
|
-
//this.watchForPingResponse();
|
|
39797
|
-
}, config.normalWaitTime)
|
|
39798
|
-
},
|
|
39799
39797
|
resetPingLoop() {
|
|
39800
|
-
this.updateLastReceivedMessageTime();
|
|
39801
39798
|
this.stopPingLoop();
|
|
39802
39799
|
this.setPingTimeout();
|
|
39803
|
-
// this.retries = 0;
|
|
39804
39800
|
},
|
|
39805
|
-
|
|
39806
|
-
|
|
39807
|
-
|
|
39808
|
-
|
|
39801
|
+
setPingTimeout() {
|
|
39802
|
+
config.timeoutIds.first = setTimeout(()=>{
|
|
39803
|
+
ping();
|
|
39804
|
+
config.timeoutIds.first = setTimeout(()=>{
|
|
39805
|
+
ping();
|
|
39806
|
+
config.timeoutIds.fourth = setTimeout(()=>{
|
|
39807
|
+
socket.close();
|
|
39808
|
+
}, 2000);
|
|
39809
|
+
}, 2000);
|
|
39810
|
+
}, 8000);
|
|
39809
39811
|
},
|
|
39810
|
-
|
|
39811
|
-
config.
|
|
39812
|
+
stopPingLoop(){
|
|
39813
|
+
clearTimeout(config.timeoutIds.first);
|
|
39814
|
+
clearTimeout(config.timeoutIds.second);
|
|
39815
|
+
clearTimeout(config.timeoutIds.third);
|
|
39816
|
+
clearTimeout(config.timeoutIds.fourth);
|
|
39812
39817
|
},
|
|
39813
39818
|
}
|
|
39814
39819
|
}
|
|
@@ -45669,7 +45674,7 @@ callStateController.createSessionInChat(currentCallParams);}}break;}chatMessagin
|
|
|
45669
45674
|
* @param type
|
|
45670
45675
|
* @param threadId
|
|
45671
45676
|
* @return {boolean}
|
|
45672
|
-
*/function shouldNotProcessChatMessage(type,threadId){var restrictedMessageTypes=[_constants.chatMessageVOTypes.MUTE_CALL_PARTICIPANT,_constants.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT,_constants.chatMessageVOTypes.CALL_PARTICIPANT_JOINED,_constants.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT,_constants.chatMessageVOTypes.RECONNECT,_constants.chatMessageVOTypes.TURN_OFF_VIDEO_CALL,_constants.chatMessageVOTypes.TURN_ON_VIDEO_CALL,_constants.chatMessageVOTypes.DESTINED_RECORD_CALL,_constants.chatMessageVOTypes.RECORD_CALL,_constants.chatMessageVOTypes.RECORD_CALL_STARTED,_constants.chatMessageVOTypes.END_RECORD_CALL,_constants.chatMessageVOTypes.TERMINATE_CALL,_constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE// chatMessageVOTypes.END_CALL
|
|
45677
|
+
*/function shouldNotProcessChatMessage(type,threadId){var restrictedMessageTypes=[_constants.chatMessageVOTypes.MUTE_CALL_PARTICIPANT,_constants.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT,_constants.chatMessageVOTypes.CALL_PARTICIPANT_JOINED,_constants.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT,_constants.chatMessageVOTypes.RECONNECT,_constants.chatMessageVOTypes.TURN_OFF_VIDEO_CALL,_constants.chatMessageVOTypes.TURN_ON_VIDEO_CALL,_constants.chatMessageVOTypes.DESTINED_RECORD_CALL,_constants.chatMessageVOTypes.RECORD_CALL,_constants.chatMessageVOTypes.RECORD_CALL_STARTED,_constants.chatMessageVOTypes.END_RECORD_CALL,_constants.chatMessageVOTypes.TERMINATE_CALL,_constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE,_constants.chatMessageVOTypes.CALL_RECORDING_FAILED// chatMessageVOTypes.END_CALL
|
|
45673
45678
|
];if(!callStopQueue.callStarted&&restrictedMessageTypes.includes(type)){return true;}else{return false;}}this.handleChatMessages=function(type,messageContent,contentCount,threadId,uniqueId){consoleLogging&&console.debug("[SDK][CALL_MODULE][handleChatMessages]","type:",type,"threadId:",threadId,"currentCallId:",currentCallId,"latestCallRequestId:",latestCallRequestId,"shouldNotProcessChatMessage:",shouldNotProcessChatMessage(type,threadId));if(shouldNotProcessChatMessage(type,threadId)){return;}switch(type){/**
|
|
45674
45679
|
* Type 70 Send Call Request
|
|
45675
45680
|
*/case _constants.chatMessageVOTypes.CALL_REQUEST:callRequestController.callRequestReceived=true;callReceived({callId:messageContent.callId},function(r){});if(chatMessaging.messagesCallbacks[uniqueId]){chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false,'',0,messageContent,contentCount));}messageContent.threadId=threadId;_eventsModule.chatEvents.fireEvent('callEvents',{type:'RECEIVE_CALL',result:messageContent});if(messageContent.callId>0){// if(!currentCallId ) {
|
|
@@ -45768,7 +45773,9 @@ if(chatMessaging.messagesCallbacks[uniqueId]){chatMessaging.messagesCallbacks[un
|
|
|
45768
45773
|
* Type 225 Call Recording Started
|
|
45769
45774
|
*/case _constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE:if(chatMessaging.messagesCallbacks[uniqueId]){chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false,'',0,messageContent,contentCount));}_eventsModule.chatEvents.fireEvent('callEvents',{type:'CALL_STICKER',result:messageContent});break;/**
|
|
45770
45775
|
* Type 227 RECALL_THREAD_PARTICIPANT
|
|
45771
|
-
*/case _constants.chatMessageVOTypes.RECALL_THREAD_PARTICIPANT:if(chatMessaging.messagesCallbacks[uniqueId]){chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false,'',0,messageContent,contentCount,uniqueId));}break
|
|
45776
|
+
*/case _constants.chatMessageVOTypes.RECALL_THREAD_PARTICIPANT:if(chatMessaging.messagesCallbacks[uniqueId]){chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false,'',0,messageContent,contentCount,uniqueId));}break;/**
|
|
45777
|
+
* Type 230 CALL_RECORDING_FAILED
|
|
45778
|
+
*/case _constants.chatMessageVOTypes.CALL_RECORDING_FAILED:if(chatMessaging.messagesCallbacks[uniqueId]){chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false,'',0,messageContent,contentCount,uniqueId));}_eventsModule.chatEvents.fireEvent('callEvents',{type:'CALL_RECORDING_FAILED',result:messageContent});break;}};this.startCall=function(params,callback){var startCallData={chatMessageVOType:_constants.chatMessageVOTypes.CALL_REQUEST,typeCode:generalTypeCode,//params.typeCode,
|
|
45772
45779
|
pushMsgType:3,token:token},content={creatorClientDto:{}};if(params){if(typeof params.type==='string'&&callTypes.hasOwnProperty(params.type.toUpperCase())){content.type=callTypes[params.type.toUpperCase()];}else{content.type=0x0;// Defaults to AUDIO Call
|
|
45773
45780
|
}content.creatorClientDto.mute=params.mute&&typeof params.mute==='boolean'?params.mute:false;content.mute=params.mute&&typeof params.mute==='boolean'?params.mute:false;if(params.clientType&&typeof params.clientType==='string'&&callClientType[params.clientType.toUpperCase()]>0){content.creatorClientDto.clientType=callClientType[params.clientType.toUpperCase()];}else{content.creatorClientDto.clientType=callClientType.WEB;}if(typeof+params.threadId==='number'&&+params.threadId>0){content.threadId=+params.threadId;}else{if(Array.isArray(params.invitees)&¶ms.invitees.length){content.invitees=[];//params.invitees;
|
|
45774
45781
|
for(var i=0;i<params.invitees.length;i++){var tempInvitee=params.invitees[i];if(tempInvitee&&typeof tempInvitee.idType==="string"){tempInvitee.idType=_constants.inviteeVOidTypes[tempInvitee.idType];content.invitees.push(tempInvitee);}}}else{_eventsModule.chatEvents.fireEvent('error',{code:999,message:'Invitees list is empty! Send an array of invitees to start a call with, Or send a Thread Id to start a call with current participants'});return;}}if(params.threadInfo&&(params.threadInfo.metadata||params.threadInfo.uniqueName)){content.createCallThreadRequest=params.threadInfo;}startCallData.content=JSON.stringify(content);}else{_eventsModule.chatEvents.fireEvent('error',{code:999,message:'No params have been sent to start call!'});return;}callRequestController.cameraPaused=typeof params.cameraPaused==='boolean'?params.cameraPaused:false;callRequestController.callRequestReceived=true;callRequestController.callEstablishedInMySide=true;callRequestController.imCallOwner=true;_deviceManager["default"].grantUserMediaDevicesPermissions({video:params.type=='video',audio:!params.mute,closeStream:true},function(result){if(result.hasError){callback&&callback({hasError:true,errorCode:result.errorCode,errorMessage:result.errorMessage});return;}if(callNoAnswerTimeout){callRequestController.callRequestTimeout=setTimeout(function(metaData){//Reject the call if participant didn't answer
|
|
@@ -46348,7 +46355,7 @@ break;/**
|
|
|
46348
46355
|
* Type 69 Get Thread All Bots
|
|
46349
46356
|
*/case _constants.chatMessageVOTypes.THREAD_ALL_BOTS:if(chatMessaging.messagesCallbacks[uniqueId]){chatMessaging.messagesCallbacks[uniqueId](_utility["default"].createReturnData(false,'',0,messageContent,contentCount));}break;/**
|
|
46350
46357
|
* Type 70 Send Call Request
|
|
46351
|
-
*/case _constants.chatMessageVOTypes.CALL_REQUEST:case _constants.chatMessageVOTypes.ACCEPT_CALL:case _constants.chatMessageVOTypes.REJECT_CALL:case _constants.chatMessageVOTypes.RECEIVE_CALL_REQUEST:case _constants.chatMessageVOTypes.START_CALL:case _constants.chatMessageVOTypes.END_CALL_REQUEST:case _constants.chatMessageVOTypes.END_CALL:case _constants.chatMessageVOTypes.GET_CALLS:case _constants.chatMessageVOTypes.RECONNECT:case _constants.chatMessageVOTypes.CONNECT:case _constants.chatMessageVOTypes.GROUP_CALL_REQUEST:case _constants.chatMessageVOTypes.LEAVE_CALL:case _constants.chatMessageVOTypes.ADD_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.CALL_PARTICIPANT_JOINED:case _constants.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.TERMINATE_CALL:case _constants.chatMessageVOTypes.MUTE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.RECORD_CALL:case _constants.chatMessageVOTypes.RECORD_CALL_STARTED:case _constants.chatMessageVOTypes.END_RECORD_CALL:case _constants.chatMessageVOTypes.START_SCREEN_SHARE:case _constants.chatMessageVOTypes.END_SCREEN_SHARE:case _constants.chatMessageVOTypes.DELETE_FROM_CALL_HISTORY:case _constants.chatMessageVOTypes.TURN_ON_VIDEO_CALL:case _constants.chatMessageVOTypes.TURN_OFF_VIDEO_CALL:case _constants.chatMessageVOTypes.ACTIVE_CALL_PARTICIPANTS:case _constants.chatMessageVOTypes.CALL_SESSION_CREATED:case _constants.chatMessageVOTypes.CANCEL_GROUP_CALL:case _constants.chatMessageVOTypes.DESTINED_RECORD_CALL:case _constants.chatMessageVOTypes.GET_CALLS_TO_JOIN:case _constants.chatMessageVOTypes.SWITCH_TO_GROUP_CALL_REQUEST:case _constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE:callModule.handleChatMessages(type,messageContent,contentCount,threadId,uniqueId);break;/**
|
|
46358
|
+
*/case _constants.chatMessageVOTypes.CALL_REQUEST:case _constants.chatMessageVOTypes.ACCEPT_CALL:case _constants.chatMessageVOTypes.REJECT_CALL:case _constants.chatMessageVOTypes.RECEIVE_CALL_REQUEST:case _constants.chatMessageVOTypes.START_CALL:case _constants.chatMessageVOTypes.END_CALL_REQUEST:case _constants.chatMessageVOTypes.END_CALL:case _constants.chatMessageVOTypes.GET_CALLS:case _constants.chatMessageVOTypes.RECONNECT:case _constants.chatMessageVOTypes.CONNECT:case _constants.chatMessageVOTypes.GROUP_CALL_REQUEST:case _constants.chatMessageVOTypes.LEAVE_CALL:case _constants.chatMessageVOTypes.ADD_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.CALL_PARTICIPANT_JOINED:case _constants.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.TERMINATE_CALL:case _constants.chatMessageVOTypes.MUTE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT:case _constants.chatMessageVOTypes.RECORD_CALL:case _constants.chatMessageVOTypes.RECORD_CALL_STARTED:case _constants.chatMessageVOTypes.END_RECORD_CALL:case _constants.chatMessageVOTypes.START_SCREEN_SHARE:case _constants.chatMessageVOTypes.END_SCREEN_SHARE:case _constants.chatMessageVOTypes.DELETE_FROM_CALL_HISTORY:case _constants.chatMessageVOTypes.TURN_ON_VIDEO_CALL:case _constants.chatMessageVOTypes.TURN_OFF_VIDEO_CALL:case _constants.chatMessageVOTypes.ACTIVE_CALL_PARTICIPANTS:case _constants.chatMessageVOTypes.CALL_SESSION_CREATED:case _constants.chatMessageVOTypes.CANCEL_GROUP_CALL:case _constants.chatMessageVOTypes.DESTINED_RECORD_CALL:case _constants.chatMessageVOTypes.GET_CALLS_TO_JOIN:case _constants.chatMessageVOTypes.SWITCH_TO_GROUP_CALL_REQUEST:case _constants.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE:case _constants.chatMessageVOTypes.CALL_RECORDING_FAILED:callModule.handleChatMessages(type,messageContent,contentCount,threadId,uniqueId);break;/**
|
|
46352
46359
|
* Type 90 Contacts Synced
|
|
46353
46360
|
*/case _constants.chatMessageVOTypes.CONTACT_SYNCED:_events.chatEvents.fireEvent('contactEvents',{type:'CONTACTS_SYNCED',result:messageContent});break;/**
|
|
46354
46361
|
* Type 101 Location Ping
|
|
@@ -48684,6 +48691,7 @@ var chatMessageVOTypes = {
|
|
|
48684
48691
|
CALL_STICKER_SYSTEM_MESSAGE: 225,
|
|
48685
48692
|
CUSTOMER_INFO: 226,
|
|
48686
48693
|
RECALL_THREAD_PARTICIPANT: 227,
|
|
48694
|
+
CALL_RECORDING_FAILED: 230,
|
|
48687
48695
|
ERROR: 999
|
|
48688
48696
|
};
|
|
48689
48697
|
exports.chatMessageVOTypes = chatMessageVOTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "podchat-browser",
|
|
3
|
-
"version": "12.7.2-snapshot.
|
|
3
|
+
"version": "12.7.2-snapshot.4",
|
|
4
4
|
"description": "Javascript SDK to use POD's Chat Service - Browser Only",
|
|
5
5
|
"main": "./dist/node/chat.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"faker": "^5.5.3",
|
|
52
52
|
"kurento-utils": "^6.16.0",
|
|
53
53
|
"node-rsa": "^1.1.1",
|
|
54
|
-
"podasync-ws-only": "^2.7.10-snapshot.
|
|
54
|
+
"podasync-ws-only": "^2.7.10-snapshot.3",
|
|
55
55
|
"query-string": "^6.8.1",
|
|
56
56
|
"webrtc-adapter": "^8.0.0"
|
|
57
57
|
},
|
package/src/call.module.js
CHANGED
|
@@ -2634,6 +2634,7 @@ function ChatCall(params) {
|
|
|
2634
2634
|
chatMessageVOTypes.END_RECORD_CALL,
|
|
2635
2635
|
chatMessageVOTypes.TERMINATE_CALL,
|
|
2636
2636
|
chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE,
|
|
2637
|
+
chatMessageVOTypes.CALL_RECORDING_FAILED,
|
|
2637
2638
|
// chatMessageVOTypes.END_CALL
|
|
2638
2639
|
];
|
|
2639
2640
|
|
|
@@ -3441,6 +3442,23 @@ function ChatCall(params) {
|
|
|
3441
3442
|
}
|
|
3442
3443
|
break;
|
|
3443
3444
|
|
|
3445
|
+
/**
|
|
3446
|
+
* Type 230 CALL_RECORDING_FAILED
|
|
3447
|
+
*/
|
|
3448
|
+
case chatMessageVOTypes.CALL_RECORDING_FAILED:
|
|
3449
|
+
if (chatMessaging.messagesCallbacks[uniqueId]) {
|
|
3450
|
+
chatMessaging.messagesCallbacks[uniqueId](Utility.createReturnData(false, '', 0, messageContent, contentCount, uniqueId));
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
chatEvents.fireEvent('callEvents', {
|
|
3454
|
+
type: 'CALL_RECORDING_FAILED',
|
|
3455
|
+
result: messageContent
|
|
3456
|
+
});
|
|
3457
|
+
|
|
3458
|
+
break;
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
|
|
3444
3462
|
}
|
|
3445
3463
|
}
|
|
3446
3464
|
|
package/src/chat.js
CHANGED
|
@@ -2812,6 +2812,7 @@ function Chat(params) {
|
|
|
2812
2812
|
case chatMessageVOTypes.GET_CALLS_TO_JOIN:
|
|
2813
2813
|
case chatMessageVOTypes.SWITCH_TO_GROUP_CALL_REQUEST:
|
|
2814
2814
|
case chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE:
|
|
2815
|
+
case chatMessageVOTypes.CALL_RECORDING_FAILED:
|
|
2815
2816
|
callModule.handleChatMessages(type, messageContent, contentCount, threadId, uniqueId);
|
|
2816
2817
|
break;
|
|
2817
2818
|
|