Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT(server): Add option to disallow recording #5298

Merged
merged 4 commits into from
Nov 10, 2021

Conversation

Krzmbrzl
Copy link
Member

@Krzmbrzl Krzmbrzl commented Nov 8, 2021

This commit adds a new server-configuration that can be used in the
murmur.ini file. It can be used to forbid anyone on the server from
using Mumble's built-in recording functionality.

Any client trying to start a recording nonetheless, will be kicked from
the server.

From Mumble 1.5.0 clients will know about this configuration and will
disable the recording action in the UI, if recording is not allowed on
the server.

Additionally this PR also fixes/revamps two other small issues related to the recording feature. See the respective commit messages or details.

Checks

If the used audio output system was bogus and therefore configured to
use a 0Hz sample rate, starting a recording would crash Mumble due to an
assertion in the VoiceRecorder class.

This commit adds a check for this situation and instead of crashing
Mumble, this will log a warning message to the console and close the
VoiceRecorderDialog instead.
@Krzmbrzl Krzmbrzl added client server feature-request This issue or PR deals with a new feature backport-needed labels Nov 8, 2021
@Kissaki
Copy link
Member

Kissaki commented Nov 8, 2021

Typo in commit and PR title Add option [d/t]o disallow

@Krzmbrzl Krzmbrzl changed the title FEAT(server): Add option do disallow recording FEAT(server): Add option to disallow recording Nov 9, 2021
@Krzmbrzl Krzmbrzl force-pushed the feat-disallow-recording branch from 8847c77 to 3ebbd4e Compare November 9, 2021 07:53
@Krzmbrzl
Copy link
Member Author

Krzmbrzl commented Nov 9, 2021

Fixed, thanks!

This commit adds a new server-configuration that can be used in the
murmur.ini file. It can be used to forbid anyone on the server from
using Mumble's built-in recording functionality.

Any client trying to start a recording nonetheless, will be kicked from
the server.

From Mumble 1.5.0 clients will know about this configuration and will
disable the recording action in the UI, if recording is not allowed on
the server.
The recording button is now disabled by default. It gets enabled only
when connected to a server (that allows recording). This is done because
the recording feature can't be used without a server connection anyway
(doing so will result in an error popup). Thus this restriction is now
reflected in the UI as well.
@Krzmbrzl Krzmbrzl force-pushed the feat-disallow-recording branch from 3ebbd4e to bbbd433 Compare November 10, 2021 09:20
@Krzmbrzl Krzmbrzl merged commit c9e853a into mumble-voip:master Nov 10, 2021
@Krzmbrzl Krzmbrzl deleted the feat-disallow-recording branch November 9, 2022 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client feature-request This issue or PR deals with a new feature server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants