rn-antmedia icon indicating copy to clipboard operation
rn-antmedia copied to clipboard

Start Video constraint after adaptor is initialized

Open sagark1510 opened this issue 3 years ago • 0 comments

Hi @TecladistaProd ,

I'm working on conference and I offer user control to start conference with audio only and later they can turn on the video. However if I pass video: false in the mediaconstraint so that user won't get unnecessary prompt for camera permission, later we don't have any way to add the video stream into existing stream.

i.e. I start with

 const adaptor = useAntMedia({
    url: webSocketUrl,
    mediaConstraints: {
      video:false,
      audio: true,
    },
    sdp_constraints: {
      offerToReceiveAudio: true,
      offerToReceiveVideo: true,
    },
})

Now, how can I add the video stream to remote peer connections or which antmedia websocket command can help us do that?

Any solution would be much appreciated.

sagark1510 avatar Jul 23 '21 04:07 sagark1510