W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2015

Re: No way to stop sending media but still displaying it locally

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Thu, 29 Jan 2015 10:53:27 +0100
Message-ID: <CALiegfmwqLKDLpvm_X5ia9NEX9T5OrFfj3xEL0J+18tVpeAfVA@mail.gmail.com>
To: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
2015-01-29 7:54 GMT+01:00 Stefan Håkansson LK
<stefan.lk.hakansson@ericsson.com>:
> I think this would be the solution now. Clone the MediaStream; attach
> one of the two clones to the video element and the other to the
> PeerConnection; put enabled=false on the track(s) in question of the
> MediaStream attached to the PC.

Yes, that is what I'm doing right now :)


> Note, this does not really pause
> sending, but sends black frames/silence over the net.

I notify the pause to the peer by HTTP/WebSocket means.



> A little bit down the road the RTCRTPSender (not yet in the main branch
> of the spec) will be there, and it will AFAIK have a method for "stop
> sending this track". Then you will not have to clone.

That would be great.



-- 
Iñaki Baz Castillo
<ibc@aliax.net>
Received on Thursday, 29 January 2015 09:54:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:42 UTC