Data channel in Janus Gateway

1,684 views
Skip to first unread message

Ngo Khai

unread,
Oct 9, 2015, 3:16:06 AM10/9/15
to meetecho-janus
Dear all,

I want to use data channel in Janus Gateway to transfer data cross the network. Please suggest me!

Thank you,
NV Khai

Lorenzo Miniero

unread,
Oct 9, 2015, 7:05:10 AM10/9/15
to meetecho-janus
We currently only support strings, not binary data. I guess you can exchange data if you base64 encode it, for instance, although I'm not sure how efficient that would be.

L.

Ngo Khai

unread,
Oct 11, 2015, 10:02:33 PM10/11/15
to meetecho-janus
Dear Lorenzo Miniero,
Thank for support. I have implemented a program to stream video from Raspberry Pi camera modules to browser using streaming plugin. Now, I want to control some configuration from browser to Raspberry Pi server (ex: write some values from browser to a file in Raspberry Pi server using Janus plugin). 
Can I use  Data channel in Janus to do that? 

Please suggest me!

Thank you,
NV Khai

Lorenzo Miniero

unread,
Oct 12, 2015, 2:02:28 AM10/12/15
to meetecho-janus
In general you can, and several people writing their own plugin are doing exactly that (check this for instance, https://babyis60.wordpress.com/2015/02/04/the-jumping-janus/).
Anyway, the streaming plugin doesn't handle data channels: if you want that, you'd have to add it to the plugin yourself.

L.

Ngo Khai

unread,
Oct 12, 2015, 6:28:58 AM10/12/15
to meetecho-janus
I will follow your suggestion.


Thank you,
NV Khai

On Friday, October 9, 2015 at 2:16:06 PM UTC+7, Ngo Khai wrote:

Ngo Khai

unread,
Oct 15, 2015, 4:19:15 AM10/15/15
to meetecho-janus
Dear Lorenzo Miniero,
I have followed your suggestion and now I can send some configuration strings from PC browser to streaming plug-in via Data Channel to save to file on Raspberry Pi. So I want to try the opposite direction (Raspberry Pi to PC) via Data channels (send strings from Raspberry Pi to PC).

Please  suggest me!

Thank you,
NV Khai

On Friday, October 9, 2015 at 2:16:06 PM UTC+7, Ngo Khai wrote:

Lorenzo Miniero

unread,
Oct 15, 2015, 6:22:00 AM10/15/15
to meetecho-janus
Do the other thing around. Implement some way of receiving messages from outside, and use relay_data to send them to the browser.

L.

peter....@googlemail.com

unread,
Aug 2, 2016, 3:59:52 AM8/2/16
to meetecho-janus
Hi Ngo Khai,

I am also interested in using a bi-directional datachannel with the streaming plugin.
Did you implement it yet? If not, I would also be happy with one-diretion only and give it a try to extend it myself.
Any chance to share the code?

Peter

Josh Dickson

unread,
Aug 3, 2016, 12:22:13 AM8/3/16
to meetecho-janus
You can already do this with no modifications to recent Janus builds, just attach a separate handle for the text room and another for the streaming plugin.
Reply all
Reply to author
Forward
0 new messages