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

[webrtc-pc] getSenders/getReceivers: optional kind parameter?

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Fri, 29 Jan 2016 19:41:14 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-129863384-1454096473-sysbot+gh@w3.org>
fippo has just created a new issue for 

== getSenders/getReceivers: optional kind parameter? ==
while playing with simulcast I noticed that neither 
 (and getTransceivers?) takes a 'kind' member specifying the media 

What I was originally looking to do was along the lines of
to configure simulcast on the first video track. Trivial to work 
around by using .filter on the array of senders returned:
pc.getSenders().filter(function(sender) { return sender.track.kind ===
 'video'; })[0]

But since 
 takes an optional kind parameter that seems slightly inconsistent.

Please view or discuss this issue at 
https://github.com/w3c/webrtc-pc/issues/488 using your GitHub account
Received on Friday, 29 January 2016 19:41:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:11 UTC