Skip to content

Commit

Permalink
TAG review: Link to design principles (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvestrand authored and vr000m committed Nov 2, 2017
1 parent 2ae5e78 commit 1fb53ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webrtc-stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,17 @@ <h3>
</ul>
<p>
The new members of the stats dictionary need to be named according to standard practice
(camelCase).
(camelCase), as per [[API-DESIGN-PRINCIPLES]].
</p>
<p>
Names ending in "Id" (such as "transportId") are always a <a>stats object reference</a>;
names ending in "Ids" (such as "trackIds") are always of type sequence&lt;DOMString&gt;,
where each DOMString is a <a>stats object reference</a>.
</p>
<p>
If the natural name for a stats value would end in "id" (such as when the stats value
is an in-protocol identifier for the monitored object), the recommended practice is to
let the name end in "identifier", such as "ssrcIdentifier" or "dataChannelIdentifier".
If the natural name for a stats value would end in "id" (such as when the stats value is
an in-protocol identifier for the monitored object), the recommended practice is to let
the name end in "identifier", such as "ssrcIdentifier" or "dataChannelIdentifier".
</p>
<p>
Stats are sampled by Javascript. In general, an application will not have overall control
Expand Down

0 comments on commit 1fb53ba

Please sign in to comment.