Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

webrtc

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.

like image 473
scarleth ohara Avatar asked Jan 15 '14 23:01

scarleth ohara


1 Answers

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.

like image 52
Muaz Khan Avatar answered Oct 19 '22 20:10

Muaz Khan