Janus with plain WebRTC client

432 views
Skip to first unread message

Giovanni Bertoncelli

unread,
Sep 6, 2022, 8:15:55 AM9/6/22
to meetecho-janus
Hi, I was wondering if there is any way to use Janus with a minimal plain WebRTC client. If not I was wondering if there is any example of a client that does not uses any third party except WebRTC to interact with Janus. I'm asking this since I may have to use Janus with a Unity 3D client that does not have any Janus SDK, only WebRTC.
If there is no way to use only WebRTC (plus the signaling part), how big may be the effort to implement a brand new client?

Thanks

Lorenzo Miniero

unread,
Sep 6, 2022, 10:37:27 AM9/6/22
to meetecho-janus
Yes, Janus will talk to anything as long as it's WebRTC. The janus.js code is not an SDK, and is not required at all. An example of a native application, using GStreamer's WebRTC stack is this one: https://github.com/lminiero/jamrtc

I never used Unity myself and I'm not familiar with their WebRTC stack, but in theory it should work (I think I remember people tinkering with that), assuming of course you use the Janus API to talk to Janus accordingly.

L.

Giovanni Bertoncelli

unread,
Sep 6, 2022, 12:17:34 PM9/6/22
to meetecho-janus
Thank you!
So ideally, having a WebRTC library on the client side, I should be implementing only the signaling part in order to manage Janus sessions and the chosen plugin?
According to the plugin's and the Janus' protocol (https://janus.conf.meetecho.com/docs/rest.html)?

Lorenzo Miniero

unread,
Sep 7, 2022, 4:38:00 AM9/7/22
to meetecho-janus
Yes, exactly, that's a common approach also when wrapping Janus on the server side, where an application server uses the Janus API to control Janus, to expose a custom API to end users.

L.

Giovanni Bertoncelli

unread,
Sep 7, 2022, 6:05:59 AM9/7/22
to meetecho-janus
Great, that was actually the idea I've came to!
Thank you!

Reply all
Reply to author
Forward
0 new messages