bigbluebutton-Github/bigbluebutton-html5/imports/ui/services/bbb-webrtc-sfu
prlanzarin d2dde8a9b1 feat: add experimental support for ICE restart
We currently use full renegotiation for audio, video, and screen sharing
reconnections, which involves re-creating transports and signaling channels
from scratch. While effective in some scenarios, this approach is slow and,
especially with outbound cameras and screen sharing, prone to failures.

To counter that, WebRTC provides a mechanism to restart ICE without needing
to re-create the peer connection. This allows us to avoid full renegotiation
and bypass some server-side signaling limitations. Implementing ICE restart
should make outbound camera/screen sharing reconnections more reliable and
faster.

This commit implements the ICE restart procedure for all WebRTC components,
based on bbb-webrtc-sfu >= v2.15.0-beta.0, which added support for ICE restart
requests. This feature is off by default. To enable it, adjust the following
flags:

- `/etc/bigbluebutton/bbb-webrtc-sfu/production.yml`: `allowIceRestart: true`
- `/etc/bigbluebutton/bbb-html5.yml`: `public.kurento.restartIce`
  * Refer to the inline documentation; this can be enabled on the client side
    per media type.
  * Note: The default max retries for audio is lower than for cameras/screen
    sharing (1 vs 3). This is because the full renegotiation process for audio
    is more reliable, so ICE restart is attempted first, followed by full
    renegotiation if necessary. This approach is less suitable for cameras/
    screen sharing, where longer retry periods for ICE restart make sense
    since full renegotation there is... iffy.
2024-08-23 09:59:51 -03:00
..
audio-broker.js feat: add experimental support for ICE restart 2024-08-23 09:59:51 -03:00
broker-base-errors.js fix(screenshare): race condition - local stream ends while broker stars 2022-05-09 18:00:30 +00:00
load-play.js fix: missing import in load-play util script (webrtc) 2022-03-03 19:49:53 -03:00
screenshare-broker.js feat: add experimental support for ICE restart 2024-08-23 09:59:51 -03:00
sfu-base-broker.js feat: add experimental support for ICE restart 2024-08-23 09:59:51 -03:00
stream-state-service.js video-provider,screenshare: consider a stream unhealthy only when the peer fails 2021-02-05 19:54:05 -03:00
utils.js Re-add option to disable enforce relay webrtc traffic for Firefox 2023-01-03 23:21:25 +01:00