SlideShare a Scribd company logo
See blog post for code examples
http://www.callstats.io/2015/07/06/basics-webrtc-getstats-api/
Some packets are lost on the way
Some packets do not arrive in time
Belated packets are discarded
Decoder has to use incomplete data
Black screen or pixelated image in video
Audio may disappear
Symptoms
Core Metrics: Packet loss and discard
Video: Loss of lip sync
Audio: Elongated or cut-off syllables
Symptoms
Receiving interval change
Receiving order change
Sending order and interval
1 2 3
1 3 2
1 2 3
time
Core Metrics: Jitter
internet
audio renderer
Receive TCP or UDP
audio de-
packetizer
audio decoder video decoder
video de-
packetizer
video renderer
4. Receiver
media render
statistics:
corresponds to
the media
rendering,
typically frames
lost, frames
discarded,
frames
rendered,
playout delay,
etc.
3. Receiver RTP
statistics:
corresponds to the
media receiver,
typically packets
received, bytes
received, packets
discarded, packets
lost, jitter, etc
audio source
audio encoder
audio packetizer video packetizer
video encoder
video source
Send TCP or UDP
2. Sender RTP
statistics:
corresponds to
the media
sender, typically
packets sent,
bytes sent,
round-trip-time,
etc.
1. Sender media
capture
statistics:
corresponds to
the media
generation,
typically frame
rate, frame size,
clock rate of the
media source,
the name of the
codec, etc.
Media Flow and getStats() Structure
OR
webrtc-internals page* getStats() API call
Accessing the statistics
delays lost packets
connection disruptions
Network congestion is common on the Internet
and it causes, for example, ...
...and that is why the WebRTC standard
includes a statistics API.
Web RTC is an
INFOGRAPHIC: BASICS OF WEBRTC
GETSTATS() API
* only chrome and opera

More Related Content

PPTX
what_is_a_codec_2010
PPTX
02.m3 cms sys-req4mediastreaming
PDF
Embedded Android Real-Time Streaming Optimization
PPTX
FirefoxでgetStats()
PPTX
What is RTCMultiConnection?
PPTX
WebRTC getStats - WebRTC Meetup Tokyo 5 LT
PDF
Kranky Geek Sao Paulo 2016 - WebRTC Statistics and Analytics
PDF
WebRTC on Mobile
what_is_a_codec_2010
02.m3 cms sys-req4mediastreaming
Embedded Android Real-Time Streaming Optimization
FirefoxでgetStats()
What is RTCMultiConnection?
WebRTC getStats - WebRTC Meetup Tokyo 5 LT
Kranky Geek Sao Paulo 2016 - WebRTC Statistics and Analytics
WebRTC on Mobile

Similar to Basics of WebRTC getStats() API (20)

PDF
WebRTC Webinar & Q&A - W3C WebRTC W3C MediaStream Recording
PDF
Getting Started with callstats.io
PDF
WebRTC Webinar & Q&A - W3C WebRTC JS API Test Platform & Updates from W3C Lis...
PDF
WebRTC standards update (Jul 2014)
PPTX
WebRTC Standards Q&A Live Session 1 by Dan Burnett & Amir Zmora
PDF
One year of measuring WebRTC service quality
PDF
A Rich Alternative to webrtc-internals
PDF
WebRTC Standards from Tim Panton
PDF
Web rtc standards live session #13 - The Browser-Standards Gap
PPTX
Upperside Webinar - WebRTC Standards Update
PDF
WebRTC Standards & Implementation Q&A - Legacy API Support Changes
PDF
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
PDF
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
PPTX
Html web rtc
PDF
WebRTC Standards & Implementation Q&A - The Future is Now2!
PDF
WebRTC APIs - API Strategy Conference Amsterdam (March 2014)
PDF
2015 Q4 webrtc standards update
PDF
WebRTC
PDF
WebRTC Meetup @ Oracle San Francisco
PDF
WebRTC standards update (April 2015)
WebRTC Webinar & Q&A - W3C WebRTC W3C MediaStream Recording
Getting Started with callstats.io
WebRTC Webinar & Q&A - W3C WebRTC JS API Test Platform & Updates from W3C Lis...
WebRTC standards update (Jul 2014)
WebRTC Standards Q&A Live Session 1 by Dan Burnett & Amir Zmora
One year of measuring WebRTC service quality
A Rich Alternative to webrtc-internals
WebRTC Standards from Tim Panton
Web rtc standards live session #13 - The Browser-Standards Gap
Upperside Webinar - WebRTC Standards Update
WebRTC Standards & Implementation Q&A - Legacy API Support Changes
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
GiacomoVacca - WebRTC - troubleshooting media negotiation.pdf
Html web rtc
WebRTC Standards & Implementation Q&A - The Future is Now2!
WebRTC APIs - API Strategy Conference Amsterdam (March 2014)
2015 Q4 webrtc standards update
WebRTC
WebRTC Meetup @ Oracle San Francisco
WebRTC standards update (April 2015)
Ad

More from callstats.io (13)

PPTX
Finding Hidden Call Quality Issues with Machine Learning
PPTX
How Active WebRTC Connectivity Tests Are Improving User Experiences
PPTX
All thingsrtc finding hidden issues with ml
PDF
ClueCon 2018: AI For Real-time Communications by Binoy Chemmagate
PDF
ClueCon 2018: Real-time Communications Monitoring 101 by Varun Singh
PDF
The Fun and User-Friendly Guide to the Secure Real-time Transport Protocol
PDF
A Clear Summary of the Real-time Transport Protocol in 2 Minutes
PDF
Components of Delay
PDF
6 Cost Saving Benefits of Real-time Speech Analytics
PDF
What are WebRTC Use Cases?
PDF
The History of the WebRTC API
PDF
Who Really Needs to Monitor WebRTC? [Infographic]
PDF
WebRTC - an analytics perspective by callstats.io
Finding Hidden Call Quality Issues with Machine Learning
How Active WebRTC Connectivity Tests Are Improving User Experiences
All thingsrtc finding hidden issues with ml
ClueCon 2018: AI For Real-time Communications by Binoy Chemmagate
ClueCon 2018: Real-time Communications Monitoring 101 by Varun Singh
The Fun and User-Friendly Guide to the Secure Real-time Transport Protocol
A Clear Summary of the Real-time Transport Protocol in 2 Minutes
Components of Delay
6 Cost Saving Benefits of Real-time Speech Analytics
What are WebRTC Use Cases?
The History of the WebRTC API
Who Really Needs to Monitor WebRTC? [Infographic]
WebRTC - an analytics perspective by callstats.io
Ad

Recently uploaded (20)

PPTX
artificialintelligenceai1-copy-210604123353.pptx
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PPTX
Database Information System - Management Information System
PPT
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PDF
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
PPTX
Introduction to cybersecurity and digital nettiquette
PPTX
Funds Management Learning Material for Beg
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
PPTX
Layers_of_the_Earth_Grade7.pptx class by
PPTX
Slides PPTX: World Game (s): Eco Economic Epochs.pptx
PDF
Session 1 (Week 1)fghjmgfdsfgthyjkhfdsadfghjkhgfdsa
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
si manuel quezon at mga nagawa sa bansang pilipinas
PDF
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
PPTX
newyork.pptxirantrafgshenepalchinachinane
PDF
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
artificialintelligenceai1-copy-210604123353.pptx
Design_with_Watersergyerge45hrbgre4top (1).ppt
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
Database Information System - Management Information System
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
Exploring VPS Hosting Trends for SMBs in 2025
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
Introduction to cybersecurity and digital nettiquette
Funds Management Learning Material for Beg
The New Creative Director: How AI Tools for Social Media Content Creation Are...
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
Layers_of_the_Earth_Grade7.pptx class by
Slides PPTX: World Game (s): Eco Economic Epochs.pptx
Session 1 (Week 1)fghjmgfdsfgthyjkhfdsadfghjkhgfdsa
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
si manuel quezon at mga nagawa sa bansang pilipinas
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
newyork.pptxirantrafgshenepalchinachinane
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf

Basics of WebRTC getStats() API

  • 1. See blog post for code examples http://www.callstats.io/2015/07/06/basics-webrtc-getstats-api/ Some packets are lost on the way Some packets do not arrive in time Belated packets are discarded Decoder has to use incomplete data Black screen or pixelated image in video Audio may disappear Symptoms Core Metrics: Packet loss and discard Video: Loss of lip sync Audio: Elongated or cut-off syllables Symptoms Receiving interval change Receiving order change Sending order and interval 1 2 3 1 3 2 1 2 3 time Core Metrics: Jitter internet audio renderer Receive TCP or UDP audio de- packetizer audio decoder video decoder video de- packetizer video renderer 4. Receiver media render statistics: corresponds to the media rendering, typically frames lost, frames discarded, frames rendered, playout delay, etc. 3. Receiver RTP statistics: corresponds to the media receiver, typically packets received, bytes received, packets discarded, packets lost, jitter, etc audio source audio encoder audio packetizer video packetizer video encoder video source Send TCP or UDP 2. Sender RTP statistics: corresponds to the media sender, typically packets sent, bytes sent, round-trip-time, etc. 1. Sender media capture statistics: corresponds to the media generation, typically frame rate, frame size, clock rate of the media source, the name of the codec, etc. Media Flow and getStats() Structure OR webrtc-internals page* getStats() API call Accessing the statistics delays lost packets connection disruptions Network congestion is common on the Internet and it causes, for example, ... ...and that is why the WebRTC standard includes a statistics API. Web RTC is an INFOGRAPHIC: BASICS OF WEBRTC GETSTATS() API * only chrome and opera