forked from w3c/webrtc-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webrtc-stats.js
146 lines (129 loc) · 5.42 KB
/
webrtc-stats.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
var respecConfig = {
// specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
specStatus: "ED",
// the specification's short name, as in http://www.w3.org/TR/short-name/
shortName: "webrtc-stats",
// if your specification has a subtitle that goes below the main
// formal title, define it here
// subtitle : "an excellent document",
// if you wish the publication date to be other than today, set this
// publishDate: "2014-01-27",
// if the specification's copyright date is a range of years, specify
// the start date here:
copyrightStart: "2014",
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD
prevED: "https://w3c.github.io/webrtc-stats/archives/20170331/webrtc-stats.html",
// if there a publicly available Editor's Draft, this is the link
edDraftURI: "https://w3c.github.io/webrtc-stats/",
// if this is a LCWD, uncomment and set the end of its review period
// lcEnd: "2009-08-05",
// if you want to have extra CSS, append them to this list
// it is RECOMMENDED that the respec.css stylesheet be kept
// extraCSS: ["ReSpec.js/css/respec.css"],
// extraCSS: ["../../../2009/dap/ReSpec.js/css/respec.css"],
// editors, add as many as you like
// only "name" is REQUIRED
editors: [
{ name: "Harald Alvestrand", company: "Google", w3cid: "24610" },
{ name: "Varun Singh", company: "callstats.io", w3cid: "85435" }
],
// authors, add as many as you like.
// This is optional, uncomment if you have authors as well as editors.
// only "name" is REQUIRED. Same format as editors.
//authors: [
// { name: "Your Name", url: "http://example.org/",
// company: "Your Company", companyURL: "http://example.com/" }
//],
// name of the WG
wg: "Web Real-Time Communications Working Group",
// URI of the public WG page
wgURI: "https://www.w3.org/2011/04/webrtc/",
// name (without the @w3c.org) of the public mailing to which comments are due
wgPublicList: "public-webrtc",
// URI of the patent status for this WG, for Rec-track documents
// !!!! IMPORTANT !!!!
// This is important for Rec-track documents, do not copy a patent URI from a random
// document unless you know what you're doing. If in doubt ask your friendly neighbourhood
// Team Contact.
wgPatentURI: "https://www.w3.org/2004/01/pp-impl/47318/status",
issueBase: "https://github.com/w3c/webrtc-stats/issues",
testSuiteURI: "https://github.com/web-platform-tests/wpt/tree/master/webrtc-stats",
otherLinks: [
{
key: "Participate",
data: [
{
value: "Mailing list",
href: "https://lists.w3.org/Archives/Public/public-webrtc/"
},
{
value: "Browse open issues",
href: "https://github.com/w3c/webrtc-stats/issues"
}
]
}
],
localBiblio: {
"XRBLOCK-STATS": {
title: "RTCP XR Metrics for WebRTC",
href: "https://tools.ietf.org/html/draft-ietf-xrblock-rtcweb-rtcp-xr-metrics",
authors: [
"Varun Singh",
"Rachel Huang",
"Roni Even",
"Dan Romascanu",
"Lingli Deng"
],
status: "Internet Draft",
publisher: "IETF"
},
"ECHO": {
title: "Digital network echo cancellers",
href: "https://www.itu.int/rec/T-REC-G.168/en",
authors: ["ITU-T G.168"],
status: "Standard",
publisher: "ITU-T"
},
"STUN-PATH-CHAR": {
title: "Discovery of path characteristics using STUN",
href: "https://tools.ietf.org/html/draft-reddy-tram-stun-path-data",
authors: [
"T. Reddy",
"D. Wing",
"P. Martinsen",
"V. Singh"
],
status: "Internet Draft",
publisher: "IETF"
},
"JSEP": {
"authors":["Justin Uberti","Cullen Jennings","Eric Rescorla"],
"href": "http://datatracker.ietf.org/doc/draft-ietf-rtcweb-jsep/",
"publisher": "IETF",
"status": "Active Internet-Draft",
"title": "Javascript Session Establishment Protocol",
"date": "16 January 2017"
}
},
afterEnd: function markFingerprinting () {
var self = this;
Array.prototype.forEach.call(
document.querySelectorAll(".fingerprint"),
function (el) {
var img = new Image();
img.src = "images/fingerprint.png";
img.alt = "(This is a fingerprinting vector.)";
img.width = 15;
img.height = 21;
el.appendChild(img);
});
Array.prototype.forEach.call(
document.querySelectorAll(".status-ED, .status-not-ED"),
function (el) {
if ((el.classList.contains("status-ED") && self.specStatus != "ED")
|| (el.classList.contains("status-not-ED") && self.specStatus == "ED")) {
el.remove();
}
});
}
};