Comments (10)
Do you see any jvb log messages containing "initialLastN"?
from jitsi-videobridge.
@bgrozev yes, it has
Setting initialLastN = 1
Also I try to disable sending ReceiverVideoConstraints
message in lib-jitsi-meet. In this case I see the same behaivour. It seems that JVB always sends ForwardedSources
message with all endpoints.
from jitsi-videobridge.
That's strange and I can't reproduce it. Do you use SCTP or WS for the data channel?
from jitsi-videobridge.
WebSockets, the screenshots above were taken from Chrome DevTools
from jitsi-videobridge.
I think I see how this happens. The WS must have been established before the bridge received the initial-last-n from jicofo. In this case the bridge will send the initial forwarded sources message (with lastN=-1), then send the updated on (with lastN=1) once it receives initial-last-n.
I'm surprised it happens often, because the WS requires at least an extra RTT for the TCP handshake, while the initial-last-n is just a packet sent to jicofo which immediately updates the bridge via an existing connection.
For your use case, would it work if we add a config option to the bridge setting a default initial lastN value?
from jitsi-videobridge.
@bgrozev yes, you are right. It's a race condition.
In my case I see the problem exist in 9 of 10 attempts. May be initial-last-n
should be a parameter when jicofo allocate user session on JVB to prevent this race condition ?
from jitsi-videobridge.
Jicofo doesn't have that information about a participant when it does the allocation. It only has the set of capabilities (i.e. just booleans) and presence. We want to avoid adding it in presence because it's broadcast to everyone.
Longer term using SCTP where the race doesn't exist might be the best option. That's why I'm looking for some easy workaround instead of a proper solution which would require more time that we can't invest. If you control your environment and want initial-last-n=1 for everyone I'm happy to add a configurable default in the bridge.
from jitsi-videobridge.
@bgrozev I'd love to have initial-last-n
as a configurable option of JVB
from jitsi-videobridge.
It's a very simple change, so I'll assume it works. Re-open if necessary.
from jitsi-videobridge.
@bgrozev yes, it works! Thanks you
PS: I think this condition appears when RTT between end user and bridge less than RTT between user and jicofo
from jitsi-videobridge.
Related Issues (20)
- Videobridge considers endpoints with muted video when building lastN list HOT 10
- Question on "Improving WebRTC Call Quality with Machine Learning"
- jvb: false Warning: [...] thread limit null (hard null). These values are too low [...]
- Jigasi is not working after Updating from jitsi-videobridge2=2.2-45* to jitsi-videobridge2_2.2-61* HOT 1
- Bug with Jitsi Videobridge and Jigasi still exists and is not fixed HOT 1
- AV1 support? HOT 17
- Potential bug causing ReceiverConstraintsMap's maxHeight not being updated HOT 1
- Connection Idle Timeout
- Late joiners not receiving remote tracks HOT 7
- Deploying multiple video bridges does not work properly HOT 3
- The Videbridge needs a long time to fix connection problems to the XMPP server. HOT 8
- What happened to COLIBRI documentation? HOT 1
- Collibri relay ws connection problem HOT 3
- jvb HeapDumpOnOutOfMemoryError HOT 1
- JVB drops service after one minute with Failed to run health check: singlePortHarvesters must not be null HOT 1
- How to monitor Video Bridge using Prometheus/ Blackbox exporter? HOT 3
- Crashes on Browser (Tabs) when screensharing / "Colibri websocket error: null" shown on JVB when tcp websocket connection is unexpectedly aborted (client) HOT 5
- jitsi-video bridge starting error. HOT 6
- No audio in either direction HOT 2
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 jitsi-videobridge.