peerjs webrtc call response

270 views
Skip to first unread message

code....@gmail.com

unread,
Jan 28, 2014, 2:48:05 AM1/28/14
to pee...@googlegroups.com, mahfuz.f...@gmail.com

I am using peerjs server and peerjs to makewebrtc call between 2 peerid. The call is like

var call = peer.call($('#callto-id').val(), window.localStream);
establishment is working perfect. Now i have added a popup when incoming call is coming from other peers.The pop is asking "Recieve the call?"

If user press "yes" from popup call recieve using 'call.answer(window.localStream);' else no action

If the user reject the call the caller not getting any response that the call is recieved or not.

How i can understand the call is recieved or not by calling ' var call = peer.call($('#callto-id').val(), window.localStream);'

Any idea?

Michelle Bu

unread,
Feb 1, 2014, 12:34:58 AM2/1/14
to code....@gmail.com, peerjs, mahfuz.f...@gmail.com
Hmm, so we currently don't have a way of detecting this. This is a bit
unsatisfying, but most of the time you can just time out (a la Skype
ringing and then giving up :))
Michelle
Reply all
Reply to author
Forward
0 new messages