Giter VIP home page Giter VIP logo

Comments (4)

carkod avatar carkod commented on May 10, 2024

Not working in Safari either. Unless we don't plan to support it. Error in console:

[Error] Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'jsonResp.metadata.stun_servers.length') (anonymous function) (anbox-stream-sdk.js:145) promiseReactionJob

from anbox-cloud.io.

morphis avatar morphis commented on May 10, 2024

Only Firefox and Chrome based browsers are supported. Safari or Edge (old one) don't have a good webrtc implementation for our purposes.

@carkod @nottrobin Can we detect the browser and display an error if it's not Firefox or Chrome?

The actual problem with Firefox seems to be coming from that the API server is still behind VPN and the ICE process fails to figure out proper candidate pairs to establish a peer-to-peer connection.

@aguadoenzo The error @carkod is pasting seems to come from the SDK. We have to check for null objects when examining the JSON response from the API server. Can you provide a fix for this?

from anbox-cloud.io.

carkod avatar carkod commented on May 10, 2024

So I have setTimeout on jsonResp.metadata.stun_servers.

I guess there is some promise here that is taking time to process? (around line 144) this works:

if (jsonResp.metadata.stun_servers.length > 0)
    setInterval(3000, this._options.stunServers.concat(jsonResp.metadata.stun_servers))
this._connectSignaler(jsonResp.metadata.websocket_url);

That object is coming null because it is not coming instantly. When I debugged it with a breakpoint, it worked, because I delayed the response.

from anbox-cloud.io.

carkod avatar carkod commented on May 10, 2024

So we are still getting Stun_Server errors. Quoting from @morphis

it's a service side timing problem
nothing on the website as we miss to transfer STUN servers sometimes

Avoiding triggering multiple instances of the stream in a row prevents the problem. Will be landing an error to be displayed with Vanilla notification (#68) and a play button to start the stream instance manually by the user (#55)

from anbox-cloud.io.

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.