[mirotalk] - add getMeetings endpoint

This commit is contained in:
Miroslav Pejic
2024-03-24 14:03:56 +01:00
parent 559a1c52a5
commit 602b69e263
11 changed files with 214 additions and 5 deletions
+12
View File
@@ -19,6 +19,18 @@ module.exports = class ServerApi {
return true;
}
getMeetings(peers) {
const meetings = {};
for (const room_id in peers) {
const meeting = peers[room_id];
if (!meetings) {
meetings = {};
}
meetings[room_id] = meeting;
}
return meetings;
}
getMeetingURL() {
return this.getProtocol() + this._host + '/join/' + uuidV4();
}