RTCMultiConnection Docs

RTCMultiConnection API Reference / "onstats" event

Remember, older "onstats" event has been removed since v1.8.

Now you can use connection.onstatechange instead.
  1. "onstats" event can be used to get status of the caller/callee.
  2. connection.onstats = function (stats, callee) {
        // callee is busy
        if (stats == 'busy') {}
        // callee rejected the request
        if (stats == 'rejected') {}
        // callee accepted caller's request
        if (stats == 'accepted') {}
        // callee.userid || callee.extra

Want to ask a Question?

You can include your email for private conversation!