Display webRTC latency RTT on webpage (javascript?)

516 views
Skip to first unread message

Will Mease

unread,
Oct 2, 2014, 9:31:40 PM10/2/14
to discuss...@googlegroups.com
Hi guys,

Is there a way to pull the audio latency of a webRTC session onto my actual webpage. I know how to check chrome://webrtc-internals, but I would like to inform the people using my website about the latency of their audio/video in a mediastream session. I can calculate the latency of a datachannel by providing each packet with a timestamp and finding the RTT, but I would like to have the latency for audio as well. Any suggestions?

Thanks,
Will

Philipp Hancke

unread,
Oct 3, 2014, 2:39:48 PM10/3/14
to discuss...@googlegroups.com
http://googlechrome.github.io/webrtc/samples/web/content/constraints/ shows how to use the getStats method -- look for the googRTT field.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Will Mease

unread,
Oct 3, 2014, 3:13:26 PM10/3/14
to discuss...@googlegroups.com
This is perfect -- thanks a lot for the help!
Reply all
Reply to author
Forward
0 new messages