Seminar plugin
The seminar plugin provides interaction capabilities with other hosts and participants. Multiple hosts can control the slides of the reveal.js presentation and the audience can follow the slides on their own phone, tablet or laptop as they are presented. As the hosts navigate the slides, all client presentations will update in real time. The seminar plugin supports bidirectional between hosts and participants and can be used with other plugins:
-
chalkboardplugin: chalkboard drawings are updated in real time on the screen of each participant -
pollplugin: presentations can include instant polls in which participants can select one of multiple choices and the overall results are shown, e.g., in a chart on another slide -
questionsplugin: allows to collect questions for a Q&A, participants can ask questions and upvote questions that they want to be answered first
Seminar server
The seminar plugin requires a running socket.io server. The seminar-repository provides such a server.
Section under construction
Setup
To use the plugin include
<!-- Seminar plugin --> |
to the header of your presentation and configure reveal.js and the plugin by
Reveal.initialize({ |
Configuration
Example configuration:
Reveal.initialize({ |
API
The presentation can use the following API of the seminar plugin:
-
open_or_join_room( password, username ): Open or join a room as host. Thepasswordis required and is validated against thehash. Theusernameis optional. -
close_room( password ): Closes the seminar room and kicks out all participants. Thepasswordis required and is validated against thehash. -
join_room( username ): Join an existing room as a regular participant. Theusernameis optional. -
leave_room(): Leave the seminar room. When the last host leaves the room the room is closed and all other participants are kicked out.
kicked out.
If autoJoin is set to true all participants will join the room once it is opened. To open a room as a host we can add a button with id host and an input field with id password and the following code to our presentations.
document.querySelector("#host").addEventListener('click', function(e) { |
License
MIT licensed
Copyright © 2023 Asvin Goel