[mirotalksfu] - add hide myself in URL param (hide=0/1)

هذا الالتزام موجود في:
Miroslav Pejic
2023-11-23 18:34:14 +01:00
الأصل a17e1eafb0
التزام e9ef3d1800
8 ملفات معدلة مع 32 إضافات و12 حذوفات

عرض الملف

@@ -22,6 +22,7 @@ async function getJoin() {
audio: true,
video: true,
screen: true,
hide: false,
notify: true,
}),
});

عرض الملف

@@ -23,6 +23,7 @@ $data = array(
"audio" => true,
"video" => true,
"screen" => true,
"hide" => false,
"notify" => true,
);
$data_string = json_encode($data);

عرض الملف

@@ -18,6 +18,7 @@ data = {
"audio": "true",
"video": "true",
"screen": "true",
"hide": "false",
"notify": "true",
}

عرض الملف

@@ -7,5 +7,5 @@ MIROTALK_URL="https://sfu.mirotalk.com/api/v1/join"
curl $MIROTALK_URL \
--header "authorization: $API_KEY_SECRET" \
--header "Content-Type: application/json" \
--data '{"room":"test","roomPassword":"false","name":"mirotalksfu","audio":"true","video":"true","screen":"false","notify":"true"}' \
--data '{"room":"test","roomPassword":"false","name":"mirotalksfu","audio":"true","video":"true","screen":"false","hide":"false","notify":"true"}' \
--request POST

عرض الملف

@@ -272,9 +272,11 @@ function startServer() {
app.get('/join/', (req, res) => {
if (Object.keys(req.query).length > 0) {
log.debug('Direct Join', req.query);
// http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&notify=1
// http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&notify=0&username=username&password=password
const { room, roomPassword, name, audio, video, screen, notify, username, password, isPresenter } =
// http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&hide=0&notify=1
// http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&hide=0&notify=0&username=username&password=password
const { room, roomPassword, name, audio, video, screen, hide, notify, username, password, isPresenter } =
checkXSS(req.query);
const isPeerValid = isAuthPeer(username, password);