Re: [webrtc-pc] Legacy getRemoteStreams() in Unified Plan

A good question wrt "what are the active receivers" is "why do you want to know?".

The answers to
<pre>
pc.getReceivers().filter(r => { if (!r.stream.ended) return r; })
pc.getReceivers().filter(r => { if (!r.stream.muted) return r; })
pc.getReceivers().filter(r => { if (r.getStreams()) return r; })
</pre>
should all be able to be different, and only the last one seems like it's relevant to getRemoteStreams().

I suggest removing the discussion of getRemoteStreams() from the question of active receivers; they seem orthogonal to me.


-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1890#issuecomment-401280500 using your GitHub account

Received on Friday, 29 June 2018 08:04:36 UTC