Table of Contents
onConnecting()
wrtc.onConnecting() is an event function called when a call is in progress of being established.
You can use this event to enable the video window that will show received video stream, or similar preparations to enable the way your client looks during a call. If you had a telephone ringer sound playing (onIncomingCall) it is time to stop it now.
It is a good idea to still show a "Deny" button allowing user to change her mind and stop the call. The deny button should call obj.denyCall()
Occurs
wrtc.onConnecting() occurs after:
Arguments
wrtc.onConnecting(obj)
- obj - call object raising the event
Return value
Ignored.
Example
wrtc.onConnecting = function(obj) {
stus.innerHTML = "Connecting to " + obj.getPartner() +
" <input type=\"button\" value=\"Deny\" onclick=\"" + obj.nam + ".DenyCall()\" />";
}