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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...