Hi, I’m new here and sorry that question must have been asked multiple times but the documentation doesn’t tell clearly how to add/configure a plugin. I have found some examples but where am I supposed to put them in? (which file?)
thanks
Hi, I’m new here and sorry that question must have been asked multiple times but the documentation doesn’t tell clearly how to add/configure a plugin. I have found some examples but where am I supposed to put them in? (which file?)
thanks
Existing plugins have configuration files that are installed in the etc
folder. They’re all extensively documented.
Adding new plugins is usually not needed, unless you have some very specific requirements. A relatively easy way to create new plugins is by using the Lua or Duktape plugins, which allow you to define some custom logic using Lua and JavaScript. If you want to create a new plugin from scratch in C, you’ll need to refer to plugin.h, and maybe check existing 3rd party plugins as a reference (our own janus-ndi is a good example). But again, I don’t think you really need that, as the existing plugins are all flexible enough to cover most use cases.
thanks, I thought those were examples you had to copy to the main file but what’s in /etc/janus is the actual active configuration that corresponds to the demo website, so you have to comment and remove what you don’t want. It’s a bit concerning to have so many ports opened by default to be honest.
You can configure how many ports to open, but with WebRTC you’ll need at least one port per active session anyway.