scarleth ohara
scarleth ohara

Reputation: 349

Is it possible to use webRTC to send a stream to a peer without him sending his local stream to you?

I am trying to create an application which requires a user to send his local video stream to multiple peers using webRTC. As far as I've seen I am responsible for managing several PeerConnection objects because a PeerConnection can only connect to a single peer at a time. What I want to know is if it is possible to create a connection and send my local stream to a peer without him sendig his local stream to me using webRTC.

Upvotes: 5

Views: 1143

Answers (1)

Muaz Khan
Muaz Khan

Reputation: 7236

Simply don't call peer.addStream for broadcast-viewers to make it oneway streaming!

You can disable audio/video media lines in the session description by setting OfferToReceiveAudio and OfferToReceiveVideo to false.

3-Way handshake isn't drafted by RTCWebb IETF WG, yet.

Because browser needs to take care of a lot stuff simultaneously like multi-tracks and multi-media lines; where each m-line should point out a unique peer.

Upvotes: 7

Related Questions