-
Notifications
You must be signed in to change notification settings - Fork 0
/
RTCIceCandidate.cljs
207 lines (142 loc) · 6.05 KB
/
RTCIceCandidate.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
(ns web.rtc.RTCIceCandidate
"The RTCIceCandidate interface—part of the WebRTC API—represents
candidate Internet Connectivity Establishment (ICE) configuration
may be used to establish an `web.audio.RTCPeerConnection`."
(:refer-clojure :exclude [type]))
(def constructor
"Constructor.
The RTCIceCandidate() constructor creates and returns a new `web.rtc.RTCIceCandidate` object, which can be configured to represent a single ICE candidate.
candidateInfo Optional
An optional `web.rtc.RTCIceCandidateInit` object providing information about the candidate; if this is provided, the candidate is initialized configured to represent the described candidate.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/RTCIceCandidate`"
js/RTCIceCandidate)
(defn candidate
"Property.
The read-only property candidate on the `web.rtc.RTCIceCandidate`
returns a `web.dom.DOMString` describing the candidate in detail.
`var candidate = RTCIceCandidate.candidate;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate`"
[this]
(-> this (.-candidate)))
(defn component
"Property.
The read-only component property on the `web.rtc.RTCIceCandidate`
is a string which indicates whether the candidate is an RTP or
RTCP candidate.
`var component = RTCIceCandidate.component;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/component`"
[this]
(-> this (.-component)))
(defn foundation
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only foundation
is a string which uniquely identifies the candidate across multiple
`var foundation = RTCIceCandidate.foundation;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/foundation`"
[this]
(-> this (.-foundation)))
(defn ip
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only ip property
a string providing the address of the device which is the source
the candidate.
`var address = RTCIceCandidate.ip;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/ip`"
[this]
(-> this (.-ip)))
(defn port
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only port property
the port number on the device at the address given by `ip` at
the candidate's peer can be reached.
`var port = RTCIceCandidate.port;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/port`"
[this]
(-> this (.-port)))
(defn priority
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only priority
specifies the candidate's priority according to the remote peer;
higher this value is, the better the remote peer considers the
to be.
`var priority = RTCIceCandidate.priority;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/priority`"
[this]
(-> this (.-priority)))
(defn protocol
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only protocol
is a string which indicates whether the candidate uses UDP or
as its transport protocol.
`var protocol = RTCIceCandidate.protocol;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/protocol`"
[this]
(-> this (.-protocol)))
(defn related-address
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only relatedAddress
is a string indicating the related address of a relay or reflexive
`var relAddress = RTCIceCandidate.relatedAddress;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/relatedAddress`"
[this]
(-> this (.-relatedAddress)))
(defn related-port
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only relatedPort
indicates the port number of reflexive or relay candidates.
`var relPort = RTCIceCandidate.relatedPort;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/relatedPort`"
[this]
(-> this (.-relatedPort)))
(defn set-related-port!
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only relatedPort
indicates the port number of reflexive or relay candidates.
`var relPort = RTCIceCandidate.relatedPort;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/relatedPort`"
[this val]
(aset this "relatedPort" val))
(defn sdp-mid
"Property.
The read-only property sdpMid on the `web.rtc.RTCIceCandidate`
returns a `web.dom.DOMString` specifying the media stream identification
of the media component with which the candidate is associated.
`var sdpMid = RTCIceCandidate.sdpMid;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid`"
[this]
(-> this (.-sdpMid)))
(defn sdp-m-line-index
"Property.
The read-only sdpMLineIndex property on the `web.rtc.RTCIceCandidate`
is a zero-based index of the m-line describing the media associated
the candidate.
`var sdpMLineIndex = RTCIceCandidate.sdpMLineIndex;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex`"
[this]
(-> this (.-sdpMLineIndex)))
(defn tcp-type
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only tcpType property
included on TCP candidates to provide additional details about
candidate type.
`var tcpType = RTCIceCandidate.tcpType;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/tcpType`"
[this]
(-> this (.-tcpType)))
(defn type
"Property.
The `web.rtc.RTCIceCandidate` interface's read-only type specifies
type of candidate the object represents.
`var type = RTCIceCandidate.type;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/type`"
[this]
(-> this (.-type)))
(defn username-fragment
"Property.
The read-only usernameFragment property on the `web.rtc.RTCIceCandidate`
is a string indicating the username fragment (\\\"ufrag\\\") that
identifies a single ICE interaction session.
`var ufrag = RTCIceCandidate.usernameFragment;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/usernameFragment`"
[this]
(-> this (.-usernameFragment)))