From 146f2bd6ade986ae2c17384ea250a77ba624731b Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Tue, 22 Nov 2022 15:03:12 +0000 Subject: [PATCH 1/2] add instance feature --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 7915f00..d242973 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,8 @@ x-init="Edrys.onUpdate((e) => { edrys = {...e} let room = edrys.liveRoom.name.replace(/[\W_]+/g, '') - url = `https://meet.jit.si/edrys-${encodeURIComponent(room)}-${edrys.class_id}#config.prejoinPageEnabled=false&userInfo.displayName=%22${encodeURIComponent(edrys.liveUser.displayName)}%22&config.subject=%22${room}%22` + let instance = edrys.module.config?.instance || 'https://meet.jit.si' + url = `${instance}/edrys-${encodeURIComponent(room)}-${edrys.class_id}#config.prejoinPageEnabled=false&userInfo.displayName=%22${encodeURIComponent(edrys.liveUser.displayName)}%22&config.subject=%22${room}%22` })"> From 6bb74430be7545465203e0a278e69b964552e2bc Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Tue, 22 Nov 2022 15:35:12 +0000 Subject: [PATCH 2/2] add config --- README.md | 24 +++++++++++++++++++++--- index.html | 11 ++++++++--- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4c87756..ef16e2a 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,27 @@ This will run a new HTTPS server on https://localhost:8001 (assuming your Edrys ### Configuration Optionally, you may specify the following config: +General settings: `instance`, `config` +General, Teacher, Student and Station settings: `config` +`instance`: selects a specific Jitsi Meet instance. +The optionally `config` options are attached the URL. +General settings `config` are attached first, then depending on the role `studentConfig` `teacherConfig` or `stationConfig` + +For config options see: [Jitsi Meet User Guide (advanced)](https://jitsi.github.io/handbook/docs/user-guide/user-guide-advanced/) +e.g.: ``` -{ - "instance": "https://meet.jit.si" -} + "config": { + "instance": "https://meet.jit.si", + "config": "&config.startWithAudioMuted=true" + }, + "studentConfig": { + "config": "&config.startWithVideoMuted=true&stud" + }, + "teacherConfig": { + "config": "&config.startWithVideoMuted=true&teach" + }, + "stationConfig": { + "config": "&config.startWithVideoMuted=false&station" + }, ``` diff --git a/index.html b/index.html index d242973..69b0a9f 100644 --- a/index.html +++ b/index.html @@ -17,11 +17,16 @@