[mirotalksfu] - add screen query param

هذا الالتزام موجود في:
Miroslav Pejic
2022-05-20 21:40:11 +02:00
الأصل 94a2d85908
التزام 9d8b2f31ac
9 ملفات معدلة مع 82 إضافات و9 حذوفات

عرض الملف

@@ -171,9 +171,9 @@ app.get(['/newroom'], (req, res) => {
app.get('/join/', (req, res) => {
if (hostCfg.authenticated && Object.keys(req.query).length > 0) {
log.debug('Direct Join', req.query);
// http://localhost:3010/join?room=test&name=mirotalksfu&audio=1&video=1&notify=1
const { room, name, audio, video, notify } = req.query;
if (room && name && audio && video && notify) {
// http://localhost:3010/join?room=test&name=mirotalksfu&audio=1&video=1&screen=1&notify=1
const { room, name, audio, video, screen, notify } = req.query;
if (room && name && audio && video && screen && notify) {
return res.sendFile(view.room);
}
}

عرض الملف

@@ -31,6 +31,8 @@ module.exports = class ServerApi {
data.audio +
'&video=' +
data.video +
'&screen=' +
data.screen +
'&notify=' +
data.notify
);