-
Notifications
You must be signed in to change notification settings - Fork 115
/
webrtc.js
178 lines (165 loc) · 6.78 KB
/
webrtc.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
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",
useExperimentalStyles: true,
// 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: "2005",
// 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: "Your Name", url: "http://example.org/",
// company: "Your Company", companyURL: "http://example.com/" },
{ name: "Cullen Jennings", company: "Cisco",
w3cid: "25254"
},
{ name: "Florent Castelli", company: "Google",
w3cid: "105725"
},
{ name: "Henrik Boström", company: "Google",
w3cid: "96936"
},
{ name: "Jan-Ivar Bruaroey", company: "Mozilla",
w3cid: "79152"
}
],
formerEditors: [
{ name: "Adam Bergkvist", company: "Ericsson",
w3cid: "45507", retiredDate: "2018-06-01"
},
{ name: "Daniel C. Burnett", company: "Invited Expert",
w3cid: "85118", retiredDate: "2018-06-01"
},
{ name: "Anant Narayanan", company: "Mozilla",
w3cid: "47326", retiredDate: "2012-11-01"
},
{ name: "Bernard Aboba", company: "Microsoft Corporation",
w3cid: "65611", retiredDate: "2017-03-01"
},
{ name: "Taylor Brandstetter", company: "Google",
w3cid: "82908", retiredDate: "2018-06-01"
},
],
// 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
group: "webrtc",
// name (without the @w3c.org) of the public mailing to which comments are due
wgPublicList: "public-webrtc",
testSuiteURI: "https://github.com/web-platform-tests/wpt/tree/master/webrtc/",
implementationReportURI: "https://w3c.github.io/webrtc-interop-reports/webrtc-pc-report.html",
lint: {
"wpt-tests-exist": true
},
github: {
repoURL: "https://github.com/w3c/webrtc-pc/",
branch: "main"
},
otherLinks: [
{
key: "Participate",
data: [
{
value: "Mailing list",
href: "https://lists.w3.org/Archives/Public/public-webrtc/"
}
],
}
],
revisedRecEnd: "2024-12-08",
xref: ["dom", "hr-time", "webidl", "html", "mediacapture-streams", "fileapi", "webrtc-stats", "websockets", "xhr", "infra", "url"],
preProcess: [
highlightTests,
markTestableAssertions,
listAmendments,
function linkToJsep() {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'jsep-mapping/map.json');
xhr.onload = function(e) {
var data = JSON.parse(this.responseText);
// Replace all
// <span data-jsep="foo">[[!JSEP]]</a>
// with
// <span>[[!JSEP]] (<a href="...#X.Y">section X.Y.</a>)
// based on mapping maintained in jsep-mapping/map.json
Array.prototype.forEach.call(
document.querySelectorAll("*[data-jsep]"),
function (el) {
var jsepAnchors = el.dataset.jsep.split(" ");
var jsepSections = jsepAnchors.map(function (s) { return data.sections["sec." + s] || data.sections["sec-" + s];});
if (jsepSections.indexOf(undefined) !== -1) {
respecUI.warning("Reference to inexistent JSEP section in '" + el.dataset.jsep + "': unrecognized anchor #" + jsepSections.indexOf(undefined) + " 'sec." + jsepAnchors[jsepSections.indexOf(undefined)] + "'.");
return;
}
el.removeAttribute("data-jsep");
el.appendChild(document.createTextNode(" ("));
jsepSections.forEach(function (s, i) {
var sectionLink = document.createElement("a");
sectionLink.href = "https://www.rfc-editor.org/rfc/rfc9429#section-" + s.slice(0, s.length - 1);
sectionLink.textContent = "section " + s;
if (i > 0) {
if (i == jsepSections.length - 1) {
el.appendChild(document.createTextNode(" and "));
} else {
el.appendChild(document.createTextNode(", "));
}
}
el.appendChild(sectionLink);
});
el.appendChild(document.createTextNode(")"));
});
};
xhr.send();
}
],
postProcess: [
showTestAnnotations,
showAmendments
],
afterEnd: function markFingerprinting () {
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);
});
},
localBiblio: {
"STUN-PARAMETERS": {
"authors":["IETF"],
"href": "https://www.iana.org/assignments/stun-parameters/stun-parameters.xhtml#stun-parameters-6",
"publisher": "IANA",
"status": "IANA Parameter Assignment",
"title": "STUN Error Codes",
"date": "April 2011"
},
"IANA-HASH-FUNCTION": {
"href": "https://www.iana.org/assignments/hash-function-text-names/hash-function-text-names.xml",
"publisher": "IANA",
"title": "Hash Function Textual Names"
}
}
};
window.respecUI.addCommand("Toggle test annotations", toggleTestAnnotations);