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

Re: [webrtc-stats] Stats to keep track of sync between audio and video

From: Stefan Holmer via GitHub <sysbot+gh@w3.org>
Date: Wed, 08 Feb 2017 14:17:57 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-278340309-1486563475-sysbot+gh@w3.org>
I don't think it makes a lot of sense to do
audioOffsetFromVideo = e2eVideoDelay - e2eAudioDelay;

as it doesn't provide any value and introduces errors. 
remoteAudio/Video.currentTime are estimates which can be wrong, and 
audio/videoTrackStats.currentPlayoutTimestamp should already be based 
on the same clocks and therefore be directly comparable. It doesn't 
matter when audio or video started 
playing. 

Am I misunderstanding something, or why isn't this enough:

audioOffsetFromVideo = videoTrackStats.currentPlayoutTimestamp - 
audioTrackStats.currentPlayoutTimestamp


-- 
GitHub Notification of comment by stefanholmer
Please view or discuss this issue at 
https://github.com/w3c/webrtc-stats/issues/158#issuecomment-278340309 
using your GitHub account
Received on Wednesday, 8 February 2017 14:18:03 UTC

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