W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > September 2017

Re: [webrtc-pc] Remove event.receiver.

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Wed, 13 Sep 2017 16:38:34 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-329225683-1505320704-sysbot+gh@w3.org>
I think in hindsight I'm withdrawing this PR. More browsers than I realized already support this, i.e. this works in Safari:
```js
pc.ontrack = event => {
  console.log(event.track);
  console.log(event.receiver.track);
  console.log(event.transceiver.receiver.track);
  video.srcObject = event.streams[0];
};
```
The redundancy extends to `track` as well, a can of worms best left unopened, and the value of removing any of these seem marginal, whereas the compat hit substantial. 

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/pull/1532#issuecomment-329225683 using your GitHub account
Received on Wednesday, 13 September 2017 16:38:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:45 UTC