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 7915f00..69b0a9f 100644 --- a/index.html +++ b/index.html @@ -17,10 +17,16 @@
{ + 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' + let config = `&userInfo.displayName=%22${encodeURIComponent(edrys.liveUser.displayName)}%22`; + config += '&config.prejoinPageEnabled=false'; + config += `&config.subject=%22${room}%22`; + config += edrys.module.config?.config || ''; + config += edrys.module[edrys.role.toLowerCase()+'Config']?.config || ''; + url = `${instance}/edrys-${encodeURIComponent(room)}-${edrys.class_id}#${config}` })">