-
Notifications
You must be signed in to change notification settings - Fork 0
/
RTCIceTransport.cljs
208 lines (147 loc) · 6.87 KB
/
RTCIceTransport.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
(ns web.audio.RTCIceTransport
"The RTCIceTransport interface provides access to information
the ICE transport layer over which the data is being sent and"
(:refer-clojure :exclude []))
(defn get-local-candidates
"Method.
The `web.audio.RTCIceTransport` method getLocalCandidates() returns
array of `web.rtc.RTCIceCandidate` objects, one for each of the
that have been gathered by the local device during the current
agent session.
`localCandidates = RTCIceTransport.getLocalCandidates();`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/getLocalCandidates`"
[this ]
(-> this (.getLocalCandidates)))
(defn get-local-parameters
"Method.
The `web.audio.RTCIceTransport` method getLocalParameters() returns
`web.rtc.RTCIceParameters` object which provides information
identifying the local peer for the duration of the ICE session.
`parameters = RTCIceTransport.getLocalParameters();`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/getLocalParameters`"
[this ]
(-> this (.getLocalParameters)))
(defn get-remote-candidates
"Method.
The `web.audio.RTCIceTransport` method getRemoteCandidates()
an array which contains one `web.rtc.RTCIceCandidate` for each
the candidates that have been received from the remote peer so
during the current ICE gathering session.
`remoteCandidates = RTCIceTransport.getRemoteCandidates();`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/getRemoteCandidates`"
[this ]
(-> this (.getRemoteCandidates)))
(defn get-remote-parameters
"Method.
The `web.audio.RTCIceTransport` method getRemoteParameters()
an `web.rtc.RTCIceParameters` object which provides information
identifying the remote peer for the duration of the ICE session.
`parameters = RTCIceTransport.getRemoteParameters();`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/getRemoteParameters`"
[this ]
(-> this (.getRemoteParameters)))
(defn get-selected-candidate-pair
"Method.
The `web.audio.RTCIceTransport` method getSelectedCandidatePair()
an `web.rtc.RTCIceCandidatePair` object containing the current
pair of ICE candidates describing the configuration of the endpoints
the transport.
`candidatePair = RTCIceTransport.getSelectedCandidatePair();`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/getSelectedCandidatePair`"
[this ]
(-> this (.getSelectedCandidatePair)))
(defn component
"Property.
The read-only `web.audio.RTCIceTransport` property component
whether the object is serving to transport RTP or RTCP. The value
one of the strings in `web.rtc.RTCIceComponent`.
`iceComponent = RTCIceTransport.component;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/component`"
[this]
(-> this (.-component)))
(defn gathering-state
"Property.
The read-only `web.audio.RTCIceTransport` property gatheringState
a `web.dom.DOMString` from the enumerated type `web.rtc.RTCIceGathererState`
indicates what gathering state the ICE agent is currently in:
\\\"gathering\\\", or \\\"complete\\\".
`gatherState = RTCIceTransport.gatheringState;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/gatheringState`"
[this]
(-> this (.-gatheringState)))
(defn role
"Property.
The read-only `web.audio.RTCIceTransport` property role indicates
ICE role the transport is fulfilling: that of the controlling
or the agent that is being controlled.
`iceRole = RTCIceTransport.role;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/role`"
[this]
(-> this (.-role)))
(defn state
"Property.
The read-only `web.audio.RTCIceTransport` property state returns
current state of the ICE transport, so you can determine the
of ICE gathering in which the ICE agent currently is operating.
`iceState = iceTransport.state;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/state`"
[this]
(-> this (.-state)))
(defn ongatheringstatechange
"Property.
The ongatheringstatechange event handler for the `web.audio.RTCIceTransport`
specifies an event handler that is to be called when the gatheringstatechange
occurs on the transport.
`RTCIceTransport.ongatheringstatechange = stateChangeHandler;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/ongatheringstatechange`"
[this]
(-> this (.-ongatheringstatechange)))
(defn set-ongatheringstatechange!
"Property.
The ongatheringstatechange event handler for the `web.audio.RTCIceTransport`
specifies an event handler that is to be called when the gatheringstatechange
occurs on the transport.
`RTCIceTransport.ongatheringstatechange = stateChangeHandler;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/ongatheringstatechange`"
[this val]
(aset this "ongatheringstatechange" val))
(defn onselectedcandidatepairchange
"Property.
The `web.audio.RTCIceTransport` interface's onselectedcandidatepairchange
handler specifies a function to be called to handle the selectedcandidatepairchange
which is fired when the ICE agent selects a new candidate pair
be used for the connection.
`RTCIceTransport.onselectedcandidatepairchange = candidatePairHandler;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/onselectedcandidatepairchange`"
[this]
(-> this (.-onselectedcandidatepairchange)))
(defn set-onselectedcandidatepairchange!
"Property.
The `web.audio.RTCIceTransport` interface's onselectedcandidatepairchange
handler specifies a function to be called to handle the selectedcandidatepairchange
which is fired when the ICE agent selects a new candidate pair
be used for the connection.
`RTCIceTransport.onselectedcandidatepairchange = candidatePairHandler;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/onselectedcandidatepairchange`"
[this val]
(aset this "onselectedcandidatepairchange" val))
(defn onstatechange
"Property.
The onstatechange event handler for the `web.audio.RTCIceTransport`
is a property which specifies a function to serve as the `EventHandler`
the statechange event that is fired whenever the transport's
changes.
`RTCIceTransport.onstatechange = stateChangeHandler;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/onstatechange`"
[this]
(-> this (.-onstatechange)))
(defn set-onstatechange!
"Property.
The onstatechange event handler for the `web.audio.RTCIceTransport`
is a property which specifies a function to serve as the `EventHandler`
the statechange event that is fired whenever the transport's
changes.
`RTCIceTransport.onstatechange = stateChangeHandler;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/onstatechange`"
[this val]
(aset this "onstatechange" val))