webrtc-stats icon indicating copy to clipboard operation
webrtc-stats copied to clipboard

Stats example uses confusing variable names

Open henbos opened this issue 2 years ago • 0 comments

https://w3c.github.io/webrtc-stats/#example-of-a-stats-application uses variable names that refer to both RTCStats (report) and RTCStatsReport (currentReport) as reports.

Clearly one is a report and one is a stats object. The former is clearly a report and the latter, well up for debate if this should be called stat or stats or statsObject. I don't really care as long as we don't call it a report.

Normally I wouldn't care that this example is using silly variable names, but apparently we have duplicated this confusion to both samples and CLs.

henbos avatar Aug 10 '23 07:08 henbos