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

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