transport.getStats() & consumer.getStats() returns an empty object {}

Hi,

Openning the single page demo client/server with two chrome windows, video & audio is working, but both - transport.getStats() & consumer.getStats() returns an empty object {}.
Any idea why? is it possible to get the bitrate statistics on the client side?

10x,
EyalS

It’s not an empty object. The API doc clearly says that those are RTCStatsReport object (Map like).

Please learn how to inspect those objects (like ES6 Maps).

Correct. I got {} from JSON.stringify and thought it was empty. My bad!