bigbluebutton-Github/bigbluebutton-html5/imports/ui/services
prlanzarin 47018e5a65 fix(audio): ensure initial local mute state when muteOnStart=true
When `muteOnStart=true`, the initial local mute state in AudioManager is
desynced from the server. This issue stems from two recent changes:
  - Decoupling voice activity updates from the main user_voice subscription,
    which introduced an implicit muted state placeholder value
    of true instead of false. See user_voice_activity's DB schema
    propagation rules.
  - Introduction of dialplan-level muteOnStart, muting channels on creation
    rather than after.

Without properly updating AudioManager's `isMuted` placeholder, no
user_voice_activity update triggers *when joining audio* with
muteOnStart=true, causing two issues:
  - Sender tracks are not locally muted on audio join.
  - Opening the audio settings modal while muted will cause the
    microphone to be incorrectly *unmuted* once it's closed (first try only).

This fix sets AudioManager's `isMuted` placeholder to true, matching the
server. Additionally:
  - Enforce the local mute state before joining audio to ensure the desired
    sender track state. Should make this a bit more future proof.
  - Track `user_voice_activity` before joining audio (rather than after)
    to avoid race conditions.
  - Clean up `AudioManager.init` (loadBridges no longer returns a promise etc).
2024-09-11 19:16:57 +00:00
..
audio-manager fix(audio): ensure initial local mute state when muteOnStart=true 2024-09-11 19:16:57 +00:00
auth
bbb-webrtc-sfu feat(audio): rework audio join without listen only 2024-08-15 00:43:28 +00:00
features
meeting-settings
mobile-app
notification feat(screenshare): add support for troubleshooting links (#21051) 2024-09-09 08:51:34 -03:00
settings
storage fix(webcam): a couple of pagination fixes, improvements, et al. (#20720) 2024-07-19 08:52:55 -04:00
users-settings
virtual-background [3.0] feat: Accept custom webcamBackgroundURL (#20920) 2024-08-23 09:04:56 -03:00
webrtc-base feat(audio): rework audio join without listen only 2024-08-15 00:43:28 +00:00