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

Re: [webrtc-pc] Describe update strategy on variables

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Fri, 07 Apr 2017 17:17:48 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-292597563-1491585467-sysbot+gh@w3.org>
Another thing we should specify is that all _related_ attributes, which the application might compare against each other, must be updated in the _same_ microtask checkpoint. For example, with `getContributingSources`, which brought up this topic: an application may compare `RTCRtpContributingSources` against each other to find out, for example, who is the most recent speaker. So, all the `RTCRtpContributingSources` for a single `RTCRtpReceiver` should be updated at the same time. Otherwise, the application may think "this person stopped speaking", when really they're just looking at stale data.

It would be difficult to generalize this principle, so I suggest adding something to the description of `getContributingSources` itself, and any other place we think is relevant.

GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1111#issuecomment-292597563 using your GitHub account
Received on Friday, 7 April 2017 17:17:55 UTC

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