-
Notifications
You must be signed in to change notification settings - Fork 0
/
RTCIceServer.cljs
226 lines (163 loc) · 5.8 KB
/
RTCIceServer.cljs
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
(ns web.rtc.RTCIceServer
"The RTCIceServer dictionary defines how to connect to a single
server (such as a STUN or TURN server). It includes both the
and the necessary credentials, if any, to connect to the server."
(:refer-clojure :exclude []))
(defn credential
"Property.
The `web.rtc.RTCIceServer` dictionary's credential property is
string providing the credential to use when connecting to the
server. This is typically a password, key, or other secret.
`var iceServer = {
...
credential = credential,
...
};
var credential = iceServer.credential;
iceServer.credential = newCredential;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/credential`"
[this]
(-> this (.-credential)))
(defn set-credential!
"Property.
The `web.rtc.RTCIceServer` dictionary's credential property is
string providing the credential to use when connecting to the
server. This is typically a password, key, or other secret.
`var iceServer = {
...
credential = credential,
...
};
var credential = iceServer.credential;
iceServer.credential = newCredential;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/credential`"
[this val]
(aset this "credential" val))
(defn credential-type
"Property.
The `web.rtc.RTCIceServer` dictionary's credentialType property
a string value from the RTCIceCredentialType enum which indicates
type of credential the `RTCIceServer.credential` value is. The
is password.
`var iceServer = {
...
credentialType = newCredentialType,
...
};
var credentialType = iceServer.credentialType;
iceServer.credentialType = newCredentialType;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/credentialType`"
[this]
(-> this (.-credentialType)))
(defn set-credential-type!
"Property.
The `web.rtc.RTCIceServer` dictionary's credentialType property
a string value from the RTCIceCredentialType enum which indicates
type of credential the `RTCIceServer.credential` value is. The
is password.
`var iceServer = {
...
credentialType = newCredentialType,
...
};
var credentialType = iceServer.credentialType;
iceServer.credentialType = newCredentialType;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/credentialType`"
[this val]
(aset this "credentialType" val))
(defn urls
"Property.
The `web.rtc.RTCIceServer` dictionary's urls property specifies
URL or URLs of the servers to be used for ICE negotiations. These
typically STUN and/or TURN servers.
`var iceServer = {
urls = iceServerUrl | [ url1, ..., urlN ],
username: \\\"webrtc\\\", // optional
credential: \\\"turnpassword\\\" // optional
};
iceServers.push(iceServer);
The value of this property may be specified as a single URL or as an array of multiple URLs.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/urls`"
[this]
(-> this (.-urls)))
(defn set-urls!
"Property.
The `web.rtc.RTCIceServer` dictionary's urls property specifies
URL or URLs of the servers to be used for ICE negotiations. These
typically STUN and/or TURN servers.
`var iceServer = {
urls = iceServerUrl | [ url1, ..., urlN ],
username: \\\"webrtc\\\", // optional
credential: \\\"turnpassword\\\" // optional
};
iceServers.push(iceServer);
The value of this property may be specified as a single URL or as an array of multiple URLs.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/urls`"
[this val]
(aset this "urls" val))
(defn username
"Property.
The `web.rtc.RTCIceServer` dictionary's username property is
string which specifies the username to use when authenticating
the ICE server being described.
`var iceServer = {
...
username = username,
...
};
var username = iceServer.username;
iceServer.username = newUsername;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/username`"
[this]
(-> this (.-username)))
(defn set-username!
"Property.
The `web.rtc.RTCIceServer` dictionary's username property is
string which specifies the username to use when authenticating
the ICE server being described.
`var iceServer = {
...
username = username,
...
};
var username = iceServer.username;
iceServer.username = newUsername;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/username`"
[this val]
(aset this "username" val))
(defn url
"Property.
The obsolete `web.rtc.RTCIceServer` dictionary's url property
the URL of a single ICE server to be used while negotiating connections.
was removed from the specification in June 2013 but is still
used in older examples and books, so we include documentation
to help adapt old code to new browsers.
`var iceServer = {
...
url = iceServerUrl,
...
};
var serverUrl = iceServer.url;
iceServer.url = iceServerUrl;
The value of this property is a `web.dom.DOMString` containing the full URL of a server to use during ICE negotiation.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/url`"
[this]
(-> this (.-url)))
(defn set-url!
"Property.
The obsolete `web.rtc.RTCIceServer` dictionary's url property
the URL of a single ICE server to be used while negotiating connections.
was removed from the specification in June 2013 but is still
used in older examples and books, so we include documentation
to help adapt old code to new browsers.
`var iceServer = {
...
url = iceServerUrl,
...
};
var serverUrl = iceServer.url;
iceServer.url = iceServerUrl;
The value of this property is a `web.dom.DOMString` containing the full URL of a server to use during ICE negotiation.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/url`"
[this val]
(aset this "url" val))