Added a way for admin to download and manage recordings on the server.
This commit is contained in:
@@ -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: () => {
|
||||
|
||||
Reference in New Issue
Block a user