Giter Club home page Giter Club logo

Comments (7)

muaz-khan avatar muaz-khan commented on May 17, 2024

I've faced similar issues whilst testing on the same network. However, onfailed event is fired only when, either both ICE-Agent and ICE-server missed to prioritze valid addresses/ports or failed to perform connectivity checks (STUN-binding-requests) or skipped subsequent STUN servers when first URI is down or failed to fire end-of-candidates gesture.

(Known Bug) Chrome seems taking first STUN-server for ice-trickling, and it skips all others (in the moment). So, XirSys' STUN server (ports 443/80) is skipped in current chrome builds; and hopefully it'll be fixed in M39.

I don't think it is an issue in RTCMultiConnection code, because second try always succeeds for such cases. Remember, getExternalIceServers must be true, or at least you should be using your own xirsys account.

connection.onfailed = function(event) {
    event.peer.getConnectionStats(function(result) {
        // read more here, https://cdn.webrtc-experiment.com/getConnectionStats.js
        // result.connectionType
        // result.audio --- for audio tracks
        // result.video ---- for video tracks
    });
    // use `redial` method
    // it is same as: connection.peers[event.userid].redial();
    event.peer.redial();

    // you can even use `renegotiate`
    // event.peer.renegotiate();
};

// or
// connection.autoReDialOnFailure = true;

P.S. Failure in ice-connectivity check isn't the only reason for onfailed event to be fired, there can be delay in signaling to negotiate offers, and many other factors.

from rtcmulticonnection.

webleb avatar webleb commented on May 17, 2024

@muaz-khan
Hi Muaz Khan
i am facing similar problem and you are right , it success from second try ,till here i am able to find a solution but after some times some users are disconnected for some reason and the console show error
i think there is a problem in signal server.

from rtcmulticonnection.

webleb avatar webleb commented on May 17, 2024

@muaz-khan
this issue appear while you are on same network using wfi or on different network

from rtcmulticonnection.

webleb avatar webleb commented on May 17, 2024

@muaz-khan
onfailed event is not fired also

from rtcmulticonnection.

webleb avatar webleb commented on May 17, 2024

@muaz-khan
waiting your reply

from rtcmulticonnection.

Ijatsu avatar Ijatsu commented on May 17, 2024

Stop flooding.

from rtcmulticonnection.

webleb avatar webleb commented on May 17, 2024

did you solve the problem?

from rtcmulticonnection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.