janus as simple mcu

777 views
Skip to first unread message

Renan Reis

unread,
Jan 10, 2015, 5:08:22 PM1/10/15
to meetech...@googlegroups.com
Hi,

I already have an webRTC working, it is a simple one to one chat. Now, is necessary to connect n to n users. Does Janus help with the video broadcast? And there is a way to connect to janus using my own webrtc code instead of the janus js api? I'm asking because I already have signalling in place.

Thanks a lot

Lorenzo Miniero

unread,
Jan 10, 2015, 6:12:57 PM1/10/15
to meetech...@googlegroups.com
Yes, the videoroom plugin can help you with that. Our Janus library is only there as a helper, you're free to do what you want as long as you "speak" the Janus protocol somewhere (e.g., your server).

L.

Renan Reis

unread,
Jan 10, 2015, 6:41:31 PM1/10/15
to meetech...@googlegroups.com
Thank you so much Lorenzo.

I was reading this: https://janus.conf.meetecho.com/docs/rest.html#plainhttp and trying to understand.

I have no experience about this piece of the architecture (gateways, mcu...), so, sorry about the naive questions.

How the Janus will broadcast the videos for the other clients? I could not understand how it integrates with the peerConnection (webRTC).

Thanks a lot.

Lorenzo Miniero

unread,
Jan 11, 2015, 9:59:09 AM1/11/15
to meetech...@googlegroups.com
If it's the MCU (or SFU) concept that is confusing you, check this article: https://webrtchacks.com/webrtc-beyond-one-one/
In Janus, you have a PeerConnection to publish your video, and N PCs to receive the feeds of others (when SRC multiplexing support will be complete it will be just one for everyting). The advantage for clients is both in terms of uplink bandwidth (you only send your video once) and CPU (you only have to encode your video once).

L.

Renan Reis

unread,
Jan 13, 2015, 2:23:41 PM1/13/15
to meetech...@googlegroups.com
Thanks Lorenzo.

Now I'm trying to understand how to connect the peers with Janus, Do I need to change the SDP? There is a doc explaining this step?

Renan

Lorenzo Miniero

unread,
Jan 14, 2015, 9:47:30 AM1/14/15
to meetech...@googlegroups.com
No specific doc available, but in general you don't need to anything in particular with the SDP, you just negotiate with Janus instead of a peer. Have a look at the Videoroom or Screensharing demo for an example.

L. 
Reply all
Reply to author
Forward
0 new messages