GleasonK / android-webrtc-api

Pubnub Android WebRTC Signaling Library
http://kevingleason.me/android-webrtc-api/
MIT License
122 stars 68 forks source link

How to listen for the Hangup Packets? #1

Closed wingoku closed 8 years ago

wingoku commented 8 years ago

I am trying to get notified when a User Y rejects the call of User X. User Y publishes the Hangup package like mentioned here but there is no documentation on how to and where should we listen for the Hangup message on the Caller's app?

wingoku commented 8 years ago

@GleasonK May be you can provide a little heads up here :)

GleasonK commented 8 years ago

Thank you for bringing this to my attention, I will update the API shortly. Documentation on classes can be found here.

I looked at the code quickly, and it appears as though all hangups are synonymous with peer connections closed. So you can use the onPeerConnectionClosed(PnPeer peer) callback.

Let me know if this helped!