Jump to content
  • 0

independant streams, webRTCAdaptor for each streams ?


Louis Veronneau
 Share

Question

I,

I am tryng to enable a user to choose whitch stream he is looking in his page.
Each broadcaster stream is for everyone to view.

A user can choose up to 3 streams on his page, from a list of active streams
which are played on different < divs >.

The model of conference provided by antmedia does not seem to fit  this case.

Do I have to make a webRTCAdaptor for each streams ?

is there another way of doing this ?

thanks
Louis
Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

hi

no i did not use iframes, should  i ?
Instead i made a js file with the code of the antmedia example, and triming most of what i dont need
then i named it webrtc1.js, webrtc2.js and webrtc3.js
and changed 
var webRTCAdaptor1 = new WebRTCAdaptor({
var webRTCAdaptor2 = new WebRTCAdaptor({
var webRTCAdaptor3= new WebRTCAdaptor({

Then I renamed some variables like mediaConstraints1,mediaConstraints2,mediaConstraints3, etc

with remoteVideoId : "remoteVideo", to remoteVideoId : "remoteVideo1", etc

and seems to work fine

made also some fixes to have the different errors msgs show where they are supposed to be

It seems to work fine.

thanks
Louis

Link to comment
Share on other sites

 Share

×
×
  • Create New...