Adding WebRTC support to Discourse with JSCommunicator

AI-generated summary

pocock suggests integrating WebRTC into Discourse using JSCommunicator, a JavaScript API that simplifies WebRTC implementation. JSCommunicator includes ready-to-use HTML/CSS components and has been used in projects like DruCall and FedRTC. Minimal server-side scripting is needed, relying on a SIP proxy and TURN server, which are available as separate packages. Pocock shares a step-by-step integration guide and offers support with a pre-configured test instance. sam recommends experimenting with a theme component and posting it to the #plugin:theme category.

It would appear quite easy for a community to get a powerful alternative to Skype if they have WebRTC in Discourse.

JSCommunicator is a high-level JavaScript API to the WebRTC stack. It includes HTML and CSS fragments that are ready-to-use or can be tweaked to meet Discourse style expectations. It has already been used to create plugins like DruCall for Drupal, the Debian RTC service and the FedRTC service for the Fedora community.

Very little server-side scripting is required: just generate an authentication token or cookie, it can also be configured to use the Discourse password as the SIP password. Most of the real work is done by a SIP proxy and TURN server, they are available as separate packages that sites can install. I recently wrote a step-by-step guide to integrating JSCommunicator in existing open source frameworks like Discourse and I would be happy to provide feedback and access to a pre-configured test instance of the SIP server for anybody who wants to have a go at this.

2 Mi Piace

I would recommend experimenting with a theme component and maybe posting it to the #plugin:theme category.

4 Mi Piace