It poosible send text messages into video room?

1,301 views
Skip to first unread message

Gábor I

unread,
Jan 5, 2017, 1:38:06 PM1/5/17
to meetecho-janus
Hi

I using video room plugin. How can i send text messages to joined room? I get "State change on data channel: closed " message in console.
I think missing "Janus started receiving our data" message because i missconfigure someone.

Thanks

Lorenzo Miniero

unread,
Jan 6, 2017, 6:12:04 AM1/6/17
to meetecho-janus
You have to negotiate data channels when creating the offer/answer. See how the EchoTest and VideoCall demos do that.

L.

Gábor I

unread,
Jan 7, 2017, 1:40:03 PM1/7/17
to meetecho-janus
Thanks. I forgot add data:true while creating the video room in js. Now works text send / receive. But .. it's seems complicate integrate (from, to) to video room plugin attributes -without direct modification (security reason)- in to video room plugin. I don't know C# programing. The video room plugin and text room is different.

Lorenzo Miniero

unread,
Jan 7, 2017, 1:54:43 PM1/7/17
to meetecho-janus
Yes, they are different. Data channels in VideoRoom are for simple publisher-to-all-viewers messages. If you need anything more complex than that, use the TextRoom instead.

L.

Gábor I

unread,
Jan 7, 2017, 4:36:16 PM1/7/17
to meetecho-janus
TextRoom can't serve video and audio, it's true?

Lorenzo Miniero

unread,
Jan 7, 2017, 4:48:08 PM1/7/17
to meetecho-janus
Correct. Just use both plugins and have them take care of different things.

L.

Gábor I

unread,
Jan 7, 2017, 5:18:14 PM1/7/17
to meetecho-janus
It would be spendthrift solution. User can connect twice for two different pluggin :-/

Lorenzo Miniero

unread,
Jan 7, 2017, 5:43:48 PM1/7/17
to meetecho-janus
Not sure wat you mean by spendthrift. We have multiple plugins exactly to address different features, rather than have a single monolithic that does everything. All of our applications use multiple plugins at the same time depending on what we need them to do.

L.

Gábor I

unread,
Jan 7, 2017, 8:30:24 PM1/7/17
to meetecho-janus
Sorry for to many question. So you mean this?



var videoRoom;
var textRoom;

Janus.init({debug: 'all', callback: function(){

     videoroom
= new Janus({
          server
: 'https://xxx:8089/janus',
          success
:function(){
                videoroom
.attach({
                       plugin
: "janus.plugin.videoroom"
               
});
         
},
     
});
     textroom
= new Janus({
          server
: 'https://xxx:8089/janus',
          success
:function(){
               textroom
.attach({
                      plugin
: "janus.plugin.videoroom"
               
});
         
},
     
});

??

Gábor I

unread,
Jan 8, 2017, 12:33:13 AM1/8/17
to meetecho-janus
I added textroom witch different plugin handler name to my test page, but while i send "setup" to server, it's create new webrtc connection. So .. video and text using different peer connection. It's normal?

Lorenzo Miniero

unread,
Jan 9, 2017, 5:43:53 AM1/9/17
to meetecho-janus
Yes. Different plugins can't share peerconnections.

L. 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages