Forums
« Back to APIs

How to identified in jabber the incoming call is video or audio

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
All I am developing an application in cisco Jabber. How can I identified the incoming call is video or only audio call?
I want to open video window popup automaticaly on answer button click when the call is video otherwise no video window popup should be display.
the call is coming from jabber softPhone or DeskPhone which is registered to Unified CM or
the call is coming through gateway by the Mobile .
 
Please Reply as soon as posible.
                                                               Thanks.
 
Regards,
Ashok Kolwal

Ashok,
I have seen using VideoDirection to see if it's "inactive" or "RecvOnly", then using conversation to do the work...However never tried it myself...

Hope this would give you some light.
Howard

But VideoDirection is not correctly updating the value which is set when the call is initiated.
Is there any work around for this?
 
Thanks,
Praveen


I think the videoDirection is not available until the call is actually connected and video was negotiated. The sample application checks videoDirection when callState is Connected in a conversationUpdate handler:
if(conversation && conversation.callState === "Connected" && (conversation.videoDirection === "RecvOnly" || conversation.videoDirection === "SendRecv")) {
calls.getCallDiv().cwic('updateConversation',{'addRemoteVideoWindow':videoObject});
}
Could you delay the opening of the popup after the call becomes connected with video ?
Thomas