How to use DispatcherOneToMany in Node JS?

605 views
Skip to first unread message

Tim

unread,
Apr 3, 2017, 2:21:12 AM4/3/17
to kurento
Hi,
      I went through the source code of kurento node js demo for one to many call on Github 'https://github.com/Kurento/kurento-tutorial-node/blob/master/kurento-one2many-call/server.js'. What I observed was, to establish one to many call between many peers, they have created many 'webRtcEndpoint' elements and connected them together. I came across a MediaElement in Kurento called DispatcherOneToMany but didn't find any code sample using  DispatcherOneToMany in Node JS. Are there any performance benefits of using DispatcherOneToMany rather than connection several webRtcEndpoints together? Could anyone tell me how to DispatcherOneToMany in ndoejs? 

Arpit

unread,
Apr 4, 2017, 4:04:48 AM4/4/17
to kurento
Hey Tim,

See this example of composite. You can use Dispatcher same like this. In Dispatcher when you will create a hubport using presenter.hubPort = dispatcher.createHubPort(), just set this created hubport as an source using presenter.dispatcher.setSource(presenter.hubPort);. This Documentation is also good for reference.

naron...@gmail.com

unread,
Nov 4, 2018, 8:39:13 PM11/4/18
to kurento
Hi Tim,

I don't know, What is different between using  DispatcherOneToMany and connection several webRtcEndpoints in room chat. Can you explain to me?
Thank you

Reply all
Reply to author
Forward
0 new messages