bigbluebutton-Github/bigbluebutton-html5/imports/ui
prlanzarin d0ad8afe64 fix(audio): prevent overlapping sessions from gUM-induced timeouts
`getUserMedia` is called by each audio bridge if it hasn't been
triggered during pre-flight screens. This ties gUM to the bridge's
negotiation timers and audio-manager's activation tracking, leading to
two issues:
  - A gUM prompt left unanswered for over 30 seconds can cause an
    incorrect 1010 (negotiation timeout) audio error.
  - If `retryThroughRelay: true`, and a joinAudio timeout occurs due to an
    unanswered gUM prompt, but the user responds while the system retries
    the connection, it can create overlapping audio sessions, resulting in
    mute state inconsistencies when `muteOnStart: true`.

This commit addresses these issues by moving gUM handling to the
audio-manager before any bridge action. This removes gUM from the
negotiation timeout trackers, ensuring that gUM errors are treated as
browser API errors (as expected).

Additionally, audio activation tracking in audio-manager has been updated
to exclude gUM times. Initially, gUM was included to catch unintended
browser-related gUM timeouts (e.g., Chrome bugs), but this skewed the
metric intended for tracking *negotiation times*. With this change,
`secondsToActivateAudio` will now focus solely on negotiation.
2024-10-21 19:19:49 +00:00
..
components [3.0.0 transcription] Add locales as much as possible (#21376) 2024-10-18 15:22:04 -03:00
core styles(chat): a new chat UI 2024-10-17 09:03:33 -03:00
hooks feat(chat): message replies 2024-10-02 19:28:02 -03:00
services fix(audio): prevent overlapping sessions from gUM-induced timeouts 2024-10-21 19:19:49 +00:00
stylesheets/styled-components styles(chat): a new chat UI 2024-10-17 09:03:33 -03:00
Types feat(chat): message reactions (#21385) 2024-10-16 13:33:07 -03:00