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

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

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Thu, 16 Mar 2017 22:23:34 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-287209355-1489703013-sysbot+gh@w3.org>
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

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