textroom ondataopen never triggered

151 views
Skip to first unread message

Max

unread,
Jul 28, 2020, 8:29:13 AM7/28/20
to meetecho-janus
Hello guys !

This is probably a stupid question, but I don't understand why ondataopen is never triggered. 

I have a videoroom plugin who works perfectly and I'm trying to add the textroom plugin because the data-channel of videoroom is not suffisant for my project.

When I look in the Janus API, I have no ICE error. But the 2 handles (videoroom & textroom) are both attach to the same session. (is it a problem ?)

My textroom handle : https://pastebin.com/2WhQNGdf

Thanks for ideas!

Max

unread,
Jul 30, 2020, 8:58:11 AM7/30/20
to meetecho-janus
Here is some code : https://pastebin.com/KF0UUadz
The Answer is created as expected and I do not encounter any error... 
I also tried to create a new session especially for the textroom but no difference.

Thanks for ideas!

Max

unread,
Jul 31, 2020, 5:32:30 AM7/31/20
to meetecho-janus
I've tried to run my code on the console on https://janus.conf.meetecho.com/textroomtest.html and it's actually working as expected.
I'm using the latest version of janus.js & dataChannel are available on my configuration. 

Am I blind or stupid? I'm running out of ideas..

Max

unread,
Aug 7, 2020, 11:28:14 AM8/7/20
to meetecho-janus
I'm still trying to get the textroom plugin to work. Maybe someone could share an example?

Here are the log 5 I get: https://pastebin.com/rNGHHdd9

Maybe I should make all my users publishers in the videoroom to use the datachannel temporarily :/

Pondia

unread,
Aug 8, 2020, 11:55:27 AM8/8/20
to meetecho-janus
Are you not supposed to call createDataChannel before calling createOffer so the offer can contain this SCTP information ?
I don't see anywhere that you're using createOffer. But in the demo, it's don't seems to be used too.. so I'm not sure anymore ahahah

Max

unread,
Aug 9, 2020, 9:35:08 AM8/9/20
to meetecho-janus
I get the notification "End of candidates." before "ICE state changed to connected" unlike the demo. 
Could this affect the fact that the state of the Datachannel does not change to "open" ?
Reply all
Reply to author
Forward
0 new messages