Commit Graph

12229 Commits

Author SHA1 Message Date
Ramón Souza
af644be16b
Merge pull request #20953 from prlanzarin/u30/fix/plg-load-log
fix: use logger convention in plugin startup logs
2024-08-19 08:58:23 -03:00
Paulo Lanzarin
2e87bf2123
Merge pull request #20948 from prlanzarin/u30/fix/prescam-loadingstate
fix(screenshare): actions-bar loading state reacts to camera as content
2024-08-16 16:58:50 -03:00
Ramón Souza
0a38236f94
Merge pull request #20873 from Arthurk12/presentation-last-state
fix(presentation): restore last state after sharing media
2024-08-16 10:48:11 -03:00
Ramón Souza
7c62352079
Merge pull request #20958 from JoVictorNunes/pure-voice-activity-hooks
fix: prevent the whole client from rerendering on voice activity
2024-08-16 09:47:57 -03:00
prlanzarin
9040cb86cb fix(audio): prevent spurious mute toggle due to AudioSettings remount
When listen only mode is deactivated and an user joins audio, an incorrect
remount of AudioSettings can trigger a spurious mute toggle. This happens
because AudioManager clears the `isConnecting` flag before setting the
`isConnected` flag. This creates a brief period where audio is flagged as
"disconnected," leading to a remount and unmount cycle that causes unwanted
mute/unmute actions due to AudioSettings' logic of muting/unmuting
active devices.

Ensure the `isConnected` flag is set before clearing the
`isConnecting` flag, preventing audio from being incorrectly flagged as
disconnected.
2024-08-16 01:51:10 +00:00
Ramón Souza
39d68e4156
Merge pull request #20782 from prlanzarin/u30/feat/tlo-ui-rebased250724
feat(audio): rework audio join UI for transparentListenOnly
2024-08-15 16:38:35 -03:00
Arthurk12
a9c8fd7051 fix(screenshare): removes redundant presentation restore
Removes redundant presentation restore code since the presentation restore
is executed by the layout context when updating the presentation pile.
2024-08-15 14:47:26 -03:00
Arthurk12
9c5a02c18b fix(presentation): update state only for presentation
Prevents changes in the presentation state while sharing media from
updating the presentation last state value. Additionally adds a missing
prop value of generic content state.
2024-08-15 14:47:26 -03:00
Arthurk12
160af41165 fix(layout): restore last presentation state
Restores the last presentation state after sharing media.
2024-08-15 14:47:26 -03:00
Arthurk12
6688866fbd fix(presentation): check for changes
Prevents `undefined` values for `presentationId` from causing false
positives that trigger the presentation restore routine.
2024-08-15 14:47:25 -03:00
Arthurk12
cd9e178161 fix(external-video): remove duplicate presentation pile dispatch
Removes the duplicate presentation pile dispatch for external video, as
an identical dispatch runs when the external video component is mounted.
This duplication did not cause any noticeable issues for the user but
resulted in the external video being added to the pile twice.
2024-08-15 14:47:25 -03:00
prlanzarin
abd6f7fea1 fix: use logger convention in plugin startup logs
The plugin loader startup logs aren't following the logger convention,
which makes them hard to work with when post-processing logs.
The appended error message is also not useful since we're logging a
Event variant raw (which either outputs {} or nonsense like { isTrusted:
etc }).

Make the plugin "loaded" and "error" logs adhere to logger conventions.
In the future, the error log could use some tuning - there's no useful
info about root cause here.
2024-08-15 15:54:06 +00:00
Ramón Souza
4227827165
fix feedback screen (#20949) 2024-08-15 11:58:19 -03:00
Ramón Souza
23e8e01871
fix: allowModsToUnmuteUsers param not working (#20888)
* fix unmute user feature
2024-08-15 11:10:08 -03:00
João Victor
2b6e4b584e fix(voice): reorganize askForConfirmationOnLeave code
- Move askForConfirmationOnLeave into AudioContainer
- Get rid of the unstable useMuteMicrophone hook, which returns a new reference every time the user gets muted/unmuted. Use the stable useToggleVoice hook instead.
2024-08-15 10:34:16 -03:00
prlanzarin
38b568b0c7 fix(screenshare): actions-bar loading state reacts to camera as content
The isSharing var is content type agnostic, so it's picking up camera as
content to flag the actions-bar button loading state.

Change the loading flag to track isScreenBroadcasting
(contentType=screen, local || global) and isScreenGloballyBroadcasting
(contentType=screen, global only). Fixes the camera as content false
positive as well as the loading state itself.
2024-08-15 13:09:40 +00:00
João Victor
b2adf9ad15 fix(voice): keep voice activity hooks pure by skipping state update when applicable 2024-08-15 09:13:12 -03:00
prlanzarin
381718a353 fix(audio): unmute when going from "no mic" -> mic via unmute trigger, +
When going from "no mic" -> mic via the unmute action, the client isn't
unmuting itself after confirming the change. This is caused by not
waiting the liveChangeInputDevice method (which is a Promise) to be
fully executed before unmounting the AudioSettings modal -- the one
responsible for triggering the unmute. Since it unmounts before the
device is changed, the unmute action will be ignored because the device
is still "listen-only" (no mic).

Properly unmute audio when transitioning from "no mic" -> "mic" via the
unmute trigger by waiting for liveChangeInputDevice to resolve.
Additionally, some general improvements to UI/UX:
  - Display the AudioSettings modal title when gUM is on prompt mode
  - Add specific subtitles to the AudioSettings modal to 1) warn that no
    mic is selected 2) Give a hint that the user can test their devices
  - Always honor settings.yml's "initialHearingState" state (whether
    local echo feedback should be played by default in AudioSettings)
2024-08-15 03:30:18 +00:00
prlanzarin
120bef5cc1 refactor(audio): improve audio settings' UI
We are missing a way to select transcription languages in some
scenarios, e.g.: listenOnlyMode=false. The audio settings UI is also not
handling item disposition very well on smaller devices.

This commit does the following to improve those blind spots:
  - Add the transcription language selector to it whenever applicable
  - Add proper styling to the transcription selector
  - Handle small screens by changing the disposition of elements to
    portrait mode
  - Improve how elements are disposed to a more familiar view: Mic ->
    Activity Indicator; Speaker -> Speaker test. This is more in line
    with how other platforms do audio configuration/pre flight screens.
2024-08-15 00:43:37 +00:00
prlanzarin
325887e325 feat(audio): rework audio join without listen only
This is a rework of the audio join procedure whithout the explict listen
only separation in mind. It's supposed to be used in conjunction with
the transparent listen only feature so that the distinction between
modes is seamless with minimal server-side impact. An abridged list of
changes:
  - Let the user pick no input device when joining microphone while
    allowing them to set an input device on the fly later on
  - Give the user the option to join audio with no input device whenever
    we fail to obtain input devices, with the option to try re-enabling
    them on the fly later on
  - Add the option to open the audio settings modal (echo test et al)
    via the in-call device selection chevron
  - Rework the SFU audio bridge and its services to support
    adding/removing tracks on the fly without renegotiation
  - Rework the SFU audio bridge and its services to support a new peer
    role called "passive-sendrecv". That role is used by dupled peers
    that have no active input source on start, but might have one later
    on.
  - Remove stale PermissionsOverlay component from the audio modal
  - Rework how permission errors are detected using the Permissions API
  - Rework the local echo test so that it uses a separate media tag
    rather than the remote
  - Add new, separate dialplans that mute/hold FreeSWITCH channels on
    hold based on UA strings. This is orchestrated server-side via
    webrtc-sfu and akka-apps. The basic difference here is that channels
    now join in their desired state rather than waiting for client side
    observers to sync the state up. It also mitigates transparent listen
    only performance edge cases on multiple audio channels joining at
    the same time.

The old, decoupled listen only mode is still present in code while we
validate this new approach. To test this, transparentListenOnly
must be enabled and listen only mode must be disable on audio join so
that the user skips straight through microphone join.
2024-08-15 00:43:28 +00:00
André Castro
39dba53dec
Fix: Emoji picker not closing when clicking outside (#20910)
* Fix: Emoji picker not closing when clicking outside
2024-08-14 13:54:41 -04:00
Ramón Souza
68121436b6
Merge pull request #20923 from AtilaU19/task_1927
fix(darkmode): fix avatar username color when dark mode is enabled
2024-08-14 10:14:57 -03:00
João Victor Nunes
2139817595
fix(external-video): player unsynced when switching presenter (#20883) 2024-08-13 19:11:55 -04:00
Ramón Souza
9cb0123717
fix(client): undefined variable in emoji rain (#20926) 2024-08-13 16:00:10 -04:00
AtilaU19
0f646c4c7f fix(darkmode): fix avatar username color when dark mode is enabled 2024-08-13 16:26:37 +00:00
Paulo Lanzarin
79df213a46
Merge pull request #20898 from prlanzarin/u30/fix/remove-spurious-gum
fix: remove spurious getUserMedia in ErrorScreen
2024-08-13 11:26:10 -03:00
Ramón Souza
32f42163fa
fix(client): add doctype + remove extra styles (#20911) 2024-08-12 17:36:41 -04:00
Ramón Souza
865032895a
Merge pull request #20886 from ramonlsouza/away-audio-flag
add config flag to mute audio output on away mode
2024-08-12 10:05:13 -03:00
prlanzarin
4dcc77968b fix: remove spurious getUserMedia in ErrorScreen
There's a very odd getUserMedia call tucked into the base ErrorScreen.
There's no rationale in either the commit or PR that added them, but the
intention seems to be stopping audio on client crash.
Using getUserMedia like that will have no effect other than an odd
permission prompt on iframe-based environments or a webcam activation
flash after the client crashes.

Remove ErrorScreen's getUserMedia call as well as the HTMLMedia pause
call - both should be handled gracefully by AudioManager's forceExitAudio
triggered by the StopAudioTracks event (also ErrorScreen). If there's an
edge case where it isn't properly stopped, we'll have to tackle it
there.
2024-08-09 19:24:33 +00:00
Tainan Felipe
4d6f4b3ded
Refactor: Make bundle using webpack (#20811)
* Refactor: Make bundle using webpack

* Fix: restore after install codes and a few settings

* Fix: build script folder permission

* Refactor: Remove support to async import on audio bridges

* Upgrade npm using nvm

* Avoid questions on npm ci execution

* Let npm ci install dev dependencies (as we need the build tools here)

* Fix: enconding

* Fix: old lock files

* Remove: bbb-config dependency to bbb-html5 service, bbb-html5 isn't a service anymore

* Fix: TS errors

* Fix: eslint

* Fix: chat styles

* npm install with "lockfileVersion": 3 (newer npm)

* build: allow nodejs 22

* node 22; drop meteor from CI and bbb-conf

* TEMP: use bbb-install without mongo but with node 22 and newer image

* build: relax nodejs condition to not trip 22.6

* build: ensure dir /usr/share/bigbluebutton/nginx exists

* init sites-available/bbb; drop disable-transparent-

* nginx complaining of missing file and ;

* TMP: print status of services

* WIP: tweak nginx location to debug

* Fix: webcam widgets alignments

* akka-apps -- update location of settings.yml

* build: add locales path for nginx

* docs and config changes for removal of meteor

* Fix: build encoding and locales enpoint folder path

* build: set wss url for media

* Add: Enable minimizer and modify to Terser

* Fix: TS errors

---------

Co-authored-by: Tiago Jacobs <tiago.jacobs@gmail.com>
Co-authored-by: Anton Georgiev <anto.georgiev@gmail.com>
Co-authored-by: Anton Georgiev <antobinary@users.noreply.github.com>
2024-08-09 13:58:44 -04:00
Anton Georgiev
46de3f7efd
Merge pull request #20806 from JoVictorNunes/webcam-patch-0724
fix(webcam): fixes related to graphql subscriptions, et al.
2024-08-09 10:53:31 -04:00
Ramón Souza
f150d92bde rename param 2024-08-09 11:20:58 -03:00
Ramón Souza
3907293692 add muteSpeakerIfAway config 2024-08-09 09:54:34 -03:00
Arthur B. Grossi
d2132484b4
feat(plugins): server command send chat message (#20781)
* feat(plugins): add chat server command and chat message type `plugin`

This commit adds the required code for the plugins SDK's chat server
command `CHAT_SEND_MESSAGE`, which allows plugins to send chat
messages. Messages sent by plugins are identified by the message
type `plugin` and belong to the user (senderID) of the client that
sent it. Plugin messages are not displayed by the client itself because
these messages are meant to be custom-rendered by plugins, typically by
the plugin that sent them.

* feat(plugins): add message metadata

Plugin name and plugin custom metadata are stored in message's metadata,
so plugins need it to identify messages when applying custom render.

* feat(chat): removes specific code for plugin messages

Removes specific akka messages, handlers and routes for plugin messages
and adds metadata parameter in `GroupChatMsgFromUser`.

* feat(chat): adds option parameter to mutation

Adds optional parameter `metadata` to the already existing mutation
`chatSendMessage` and use this mutation for plugin chat server command.

* feat(chat): rendering of plugin messages

This commit implements the correct rendering of plugin messages, which
is:
- Plugin messages with metadata attribute `custom` set to true are not
  rendered by the client, and are meant to be custom-rendered by
  plugins.
- Plugin messages with metadata attribute `custom` set to false are
  rendered by the client as being sent by the user that triggered it.

* Update sdk version to v0.0.56

* update sdk version to v0.0.57
2024-08-07 15:59:30 -04:00
Tiago Jacobs
24d91214a9
Merge pull request #20820 from GuiLeme/video-control-plugin-sdk
feat(plugin): userCameraDropdown enhancements, user-camera dom-element and screenshareHelper
2024-08-07 15:21:31 -03:00
Tiago Jacobs
6ba910080b
Merge pull request #20867 from gustavotrott/gql-limit-conn
gql-middlware: Control max of Graphql connections (global and per user)
2024-08-07 14:14:13 -03:00
Ramón Souza
dd58b9fa27
Merge pull request #20803 from Scroody/adding-loading-state-to-buttons
Client: Adding loading status to buttons
2024-08-07 13:26:42 -03:00
Ramón Souza
acd02d7c1c
Update bigbluebutton-html5/imports/ui/components/common/button/component.jsx 2024-08-07 13:26:20 -03:00
Ramón Souza
be0312e97c
fix: "send feedback" button styles (#20869) 2024-08-07 10:43:49 -04:00
Ramón Souza
d38a8f3c2b
Merge pull request #20866 from ramonlsouza/fix-logger-instances
fix: duplicated log messages
2024-08-07 11:23:15 -03:00
André Möller
9d26c41655 Additional changes 2024-08-07 11:01:02 -03:00
KDSBrowne
4f4c6ef70e
fix(whiteboard): increase camera update delay to allow for bbb layout to position itself (#20864) 2024-08-07 10:00:41 -04:00
Anton Georgiev
20f1ce2441
Merge pull request #20860 from ramonlsouza/port-breakout-changes
Port breakouts enhancements from 2.7.10 to 3.0
2024-08-06 16:46:34 -04:00
Gustavo Trott
8e70891083 Implements max of Graphql connections (global and per user) 2024-08-06 15:07:52 -03:00
Ramón Souza
a9e0e1e2fa fix duplicated log messages 2024-08-06 14:40:34 -03:00
Ramón Souza
174b875221
Merge pull request #20859 from JoVictorNunes/userdata-bbb_ask_for_feedback_on_logout
fix: `userdata-bbb_ask_for_feedback_on_logout`
2024-08-06 09:28:06 -03:00
Ramón Souza
c8c3f24f82
Merge pull request #20835 from KDSBrowne/bbb-port-20621
fix: Improve screen reader accessibility for polling modal
2024-08-05 15:46:39 -03:00
André Möller
faa83eb890 Merge remote-tracking branch 'upstream/v3.0.x-release' into adding-loading-state-to-buttons 2024-08-05 14:55:58 -03:00
Ramón Souza
1b0e84ebc0 fix ts errors 2024-08-05 14:21:23 -03:00
André Möller
cdfbc5a276 Additional changes 2024-08-05 14:19:34 -03:00