Reputation: 107
I have established 1 to 1 communication using "WEBRTC". Now i want to send video from user A to user B. However, i don't want to send video back from user B to A.
Originally I thought to pass { video: false, audio: false }
as the constraints to the getUserMedia()
function on the side of the B user. I am not sure if this is the right approach.
How can i achieve this?
Upvotes: 0
Views: 1854
Reputation: 17275
Don't call getUserMedia nor addTrack (addStream). Make sure you call createOffer with {offerToReceiveAudio: true, offerToReceiveVideo: true}) just in case.
Upvotes: 4