rn-antmedia
rn-antmedia copied to clipboard
Start Video constraint after adaptor is initialized
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.