Re: [webrtc-pc] RTCRtpContributingSource.audioLevel not guaranteed to be in sync with audio playout

Another option: add a method on `RTCRtpReceiver` to get the remote timestamp of the last frame that was played out.

An application could call `getContributingSources` and see a source with `timestamp` X, call `getCurrentPlayoutTimestamp` and get Y, and then wait for Y - X before updating the audio level UI.

The advantages of this approach are that it's simpler from an implementation perspective, and it allows the application to get information sooner, in case that's ever desired.

-- 
GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1085#issuecomment-287209355 using your GitHub account

Received on Thursday, 16 March 2017 22:23:40 UTC