Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
```
12 changes: 9 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@

<body>
<template x-if="!!edrys && !!url" x-data="{ edrys: undefined, url: undefined }"
x-init="Edrys.onUpdate((e) => {
edrys = {...e}
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'
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}`
})">

<iframe :src="url" frameborder="0" style="width:100%;height:100%;" allow="camera; microphone; fullscreen; display-capture;" ></iframe>
Expand Down