Added a way for admin to download and manage recordings on the server.

This commit is contained in:
Storm Dragon
2026-07-07 16:22:40 -04:00
parent 21fa07ee64
commit 4e210db57a
3 changed files with 19 additions and 1 deletions
+8
View File
@@ -1662,6 +1662,11 @@ function canRecordHall() {
serverConnection.permissions.indexOf('record') >= 0);
}
function recordingsUrl() {
return '/recordings/' +
hall.split('/').map(part => encodeURIComponent(part)).join('/') + '/';
}
/**
* @param {{label?: string, type?: string, onClick?: function(): void}[]} items
* @param {HTMLElement} trigger
@@ -1789,6 +1794,9 @@ function userMenu(elt) {
onClick: () => {
serverConnection.hallAction(hallRecording ? 'unrecord' : 'record');
}});
items.push({label: 'Open recordings', onClick: () => {
window.location.href = recordingsUrl();
}});
}
if(findUpMedia('audio'))
items.push({label: 'Turn microphone off', onClick: () => {