Skip to content
This is a Moodle plugin for users interact with audio and video using WebRTC
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

WebRTC Moodle Plugin

Welcome to WebRTC Moodle Plugin!

This project uses the code from

to implement an activity module for Moodle to allow people to interact more freely.

Everything you need to start communicating using your webcam and microphone is an updated browser like Firefox or Chrome. There is no need to install any third-party plugins on your browser. There is no flash here.

Also, this plugin transfer data (audio and video) in a P2P (peer-to-peer) fashion. This way, data is sent directly from one user computer to another. There is no dependency on a "central server" or a "streaming server".

The only dependency on a server is for "signaling events" like room creations, and users joining and leaving. See more about it on the "Signaling server" section of this document.


  • Video and audio chat
  • Text chat
  • File sharing (it is P2P file sharing, not integrated with Moodle Files API)

It is basically a copy of the Audio+Video+TextChat+FileSharing using RTCMultiConnection demo:

Future features

  • Screensharing
  • Record video and audio from any peer (or local stream) and save to your computer
  • Colaborative canvas


  • Put this code under "youmoodlerootdir/mod/webrtcexperiments" (you may "git clone" or "composer require")
  • Visit your Moodle site as administrator to install plugin via web interface


To use the module, the first user must use the "Open Room" button. The browser should then ask you to share mic and cam.

Then it should give the id of the room to the other users.

The other users should use the code given by the first user, fill the form with it, and use the "Join room" button. The browser should then ask you to share mic and cam.

When the second user enters the room, the chat and share files will be enabled.

Signaling Server

This module needs a signaling server. To learn more about Signaling, please visit:

If you don't want (or don't feel the need to, or cannot, for any reason) to run your own server, don't worry, this module will use the server below by default (under TLS)

Note that there is no warranty for this server to be up and running. This server runs a websocket server over node.js that can be found at


Feel free to contact me at .

If you have problems using the plugin the plugin or would like to see a new feature implemented, please visit

If you like the plugin and want to say hi publicly instead of sending an email, leave a comment at


The icon was downloaded from pixabay and is licensed under CC0 Public Domain


This development is a not for profit work. If you like you can help keep it going by donating via paypal =)

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.