feat: Allow disabling the call controls (#2615)

- For: #2587
This commit is contained in:
Dermot Duffy
2026-07-26 11:35:18 -07:00
committed by GitHub
parent 0c3d46ad3d
commit 3b8835ee7c
7 changed files with 87 additions and 8 deletions
+15
View File
@@ -99,6 +99,7 @@ describe('config defaults', () => {
builtin: true,
call: {
button_size: 40,
enabled: true,
lock: true,
ringtone: { type: 'chime', repeat: 0 },
unanswered_timeout_seconds: 60,
@@ -1848,6 +1849,20 @@ it('should not require title controls to specify all options', () => {
).toBeTruthy();
});
it('should allow the on-screen call controls overlay to be disabled', () => {
const config = createConfig({
cameras: [{}],
live: {
controls: {
call: {
enabled: false,
},
},
},
});
expect(config.live.controls.call.enabled).toBe(false);
});
it('should strip trailing slashes from go2rtc url', () => {
const config = createConfig({
cameras: [