bigbluebutton-Github/bigbluebutton-html5
Paulo Lanzarin 14c92a3843
feat: add experimental support for ICE restart (#21208)
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'
*outbound* peers. It is 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.

Endpoints that are inbound/`recvonly` only (client's perspective) do *not*
support ICE restart yet. There are two main reasons:
  - Server-side changes are required to support `recvonly` endpoints,
    particularly the proper handling of the server’s `setup` role in the
    its SDPs during an ICE restart. These changes are too broad for now,
    so they are deferred to future releases (SFU@v2.16).
  - Full reconnections for `recvonly` endpoints are currently reliable,
    unlike for `send*` endpoints. ICE restarts could still provide benefits
    for `recvonly` endpoints, but we need the server updates first.
2024-09-20 06:35:32 -04:00
..
.vscode refactor (typescript): fix typescript build errors (#18454) 2023-08-14 17:52:35 -03:00
client Merge pull request #21153 from prlanzarin/u30/fix/error-boundary-critical 2024-09-13 09:57:28 -03:00
imports feat: add experimental support for ICE restart (#21208) 2024-09-20 06:35:32 -04:00
private/config feat: add experimental support for ICE restart (#21208) 2024-09-20 06:35:32 -04:00
public Translate en.json in el_GR (#21155) 2024-09-11 09:32:27 -04:00
server Add dynamic import config 2024-07-02 17:04:34 -03:00
.eslintignore
.eslintrc.js disable require default props eslint rule 2024-06-11 10:03:42 -03:00
.gitignore Refactor: Make bundle using webpack (#20811) 2024-08-09 13:58:44 -04:00
babel.config.js Refactor: Make bundle using webpack (#20811) 2024-08-09 13:58:44 -04:00
deploy.sh Add scripts to run html5 from source (#20899) 2024-08-12 09:35:45 -03:00
jsconfig.json
package-lock.json chore(deps): bump the npm_and_yarn group across 4 directories with 2 updates (#21172) 2024-09-12 10:54:48 -04:00
package.json chore(deps): bump the npm_and_yarn group across 4 directories with 6 updates (#21163) 2024-09-11 10:52:05 -04:00
run-dev.sh Add scripts to run html5 from source (#20899) 2024-08-12 09:35:45 -03:00
test-html5.sh
tsconfig.json Refactor: Make bundle using webpack (#20811) 2024-08-09 13:58:44 -04:00
webpack.config.js config(client): Cache limit time (#21075) 2024-09-16 14:30:10 -04:00