W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > June 2018

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

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Fri, 29 Jun 2018 08:04:02 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-401280500-1530259440-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:44 UTC