Comments (4)
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.
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.
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.
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)
- Remove scrollbar and tidy up markdown
- Typo HOT 3
- Docs side navigation is not implemented correctly HOT 1
- Add new cookie form and update GTM
- Partners logos on home page are not HD HOT 4
- Update discourse module
- Add docs search
- Typo results page
- The app crashes, URL not available: demo-api.anbox-cloud.io HOT 2
- Add links to anbox-cloud after pages have been built HOT 4
- Build mobile devices page
- Update to latest discourse module
- Update muted headings to use <h4> as per design advice
- Action Required: Fix Renovate Configuration
- Search does not work HOT 2
- Global header is indexed for documentation pages HOT 1
- `table-layout:auto` for documentation HOT 1
- where could i get the invitation code HOT 1
- Cannot install Anbox Cloud: `ERROR: AMC client certificate is missing` HOT 1
- Suru strip looks broken on the home page (and it's old style)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anbox-cloud.io.