[mirotalksfu] - add screen query param

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

عرض الملف

@@ -17,6 +17,7 @@ function getResponse() {
name: 'mirotalksfu',
audio: true,
video: true,
screen: true,
notify: true,
}),
});

عرض الملف

@@ -20,6 +20,7 @@ $data = array(
"name" => "mirotalksfu",
"audio" => true,
"video" => true,
"screen" => true,
"notify" => true,
);
$data_string = json_encode($data);

عرض الملف

@@ -14,6 +14,7 @@ data = {
"name": "mirotalksfu",
"audio": "true",
"video": "true",
"screen": "true",
"notify": "true",
}

عرض الملف

@@ -6,5 +6,5 @@ MIROTALK_URL="https://sfu.mirotalk.org/api/v1/join"
curl $MIROTALK_URL \
--header "authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"room":"test","name":"mirotalksfu","audio":"1","video":"1","notify":"1"}' \
--data '{"room":"test","name":"mirotalksfu","audio":"1","video":"1","screen":"1""notify":"1"}' \
--request POST

عرض الملف

@@ -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
);