Developing custom plugin

Hey everyone,

I am currently trying to develop a custom plugin for Janus, but having a hard time setting up my dev environment. Initially, I forked Janus in a private repo, but this makes it hard to track Janus updates and my own repo changes as everything is convoluted in the same history.

Is there a better way to separate Janus and my custom plugin code in two different repository/directories?. I tried cloning Janus as a submodule in my repo, but not sure how to keep my custom plugin code in a different root dir and then build it later into Janus.

Any suggestions appreciated.

Thanks

You can check how others have done it in the past, since there’s many third party plugins available on Github. This one looks like a good example to start from.

2 Likes

Great! thank you very much for the example!

In case you prefer CMake you can look how I’ve did it: GitHub - RSATom/janus-play-plugin: [WIP] Janus plugin to play possibly recording at the same time files (i.e. timeshifted playback). Based on Janus Record&Play plugin

1 Like

Addind another good starter example here that might help people: