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

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