Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get peer connections statistics #62

Closed
ghost opened this issue Apr 7, 2015 · 2 comments
Closed

How to get peer connections statistics #62

ghost opened this issue Apr 7, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 7, 2015

Hi.

Haven't found any info about getStats usage. Could you help me, how to correctly call getStats method in peer connection?

Thanks.

@johache
Copy link
Contributor

johache commented Apr 7, 2015

Hi.
We are still based on Chrome's implementation of getStats.
The prototype is: PC::getStats(successCallback);

For example
peerConnection.getStats(function(stats) {
var results = stats.result();
...
});

We used to have an example here: https://github.com/Temasys/Google-WebRTC-Samples/tree/master/samples/web/content/munge-sdp-stats
I'm not sure it is quite up to date though.

@marcinag
Copy link

Hi,

I played a bit with the statistics and it seems to me that I can only see the statistics from the received video track. In my application, I'm running a p2p session between 2 users.

Here is the stat object we get:

{ Timestamp: "1438100065133.217"
bytesReceived: "1565969"
googCaptureStartNtpTimeMs: "3647088844748"
googCurrentDelayMs: "72"
googDecodeMs: "2"
googFirsSent: "0"
googFrameHeightReceived: "480"
googFrameRateDecoded: "0"
googFrameRateOutput: "0"
googFrameRateReceived: "31"
googFrameWidthReceived: "640"
googJitterBufferMs: "50"
googMaxDecodeMs: "12"
googMinPlayoutDelayMs: "0"
googNacksSent: "0"
googPlisSent: "0"
googRenderDelayMs: "10"
googTargetDelayMs: "72"
googTrackId: "e1a561fe-798e-4204-96cb-62c3d0958db2"
packetsLost: "0"
packetsReceived: "1645"
ssrc: "2988131868"
transportId: "Channel-audio-1"
type: "ssrc" }

Thanks for help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants