-
Notifications
You must be signed in to change notification settings - Fork 0
/
RTCRtpStreamStats.cljs
272 lines (191 loc) · 8.09 KB
/
RTCRtpStreamStats.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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
(ns web.rtc.RTCRtpStreamStats
"The `web.rtc.RTCRtpStreamStats` dictionary is returned by the
`RTCRtpSender.getStats()`, and `RTCRtpReceiver.getStats()` methods
provide detailed statistics about WebRTC connectivity."
(:refer-clojure :exclude []))
(defn codec-id
"Property.
The `web.rtc.RTCRtpStreamStats` dictionary's codecId property
a string which uniquely identifies the object that was inspected
produce the data in the `RTCCodecStats` for the RTP stream.
`var codecID = RTCRtpStreamStats.codecId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/codecId`"
[this]
(-> this (.-codecId)))
(defn set-codec-id!
"Property.
The `web.rtc.RTCRtpStreamStats` dictionary's codecId property
a string which uniquely identifies the object that was inspected
produce the data in the `RTCCodecStats` for the RTP stream.
`var codecID = RTCRtpStreamStats.codecId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/codecId`"
[this val]
(aset this "codecId" val))
(defn kind
"Property.
The kind property of the `web.rtc.RTCRtpStreamStats` dictionary
a string indicating whether the described RTP stream contains
or video media.
`mediaKind = RTCRtpStreamStats.kind;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/kind`"
[this]
(-> this (.-kind)))
(defn set-kind!
"Property.
The kind property of the `web.rtc.RTCRtpStreamStats` dictionary
a string indicating whether the described RTP stream contains
or video media.
`mediaKind = RTCRtpStreamStats.kind;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/kind`"
[this val]
(aset this "kind" val))
(defn ssrc
"Property.
The `web.rtc.RTCRtpStreamStats` dictionary's ssrc property is
integer which uniquely identifies the source of the RTP packets
statistics are covered by the `web.rtc.RTCStatsReport` that includes
RTCRtpStreamStats dictionary.
`var ssrc = RTCRtpStreamStats.ssrc;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/ssrc`"
[this]
(-> this (.-ssrc)))
(defn set-ssrc!
"Property.
The `web.rtc.RTCRtpStreamStats` dictionary's ssrc property is
integer which uniquely identifies the source of the RTP packets
statistics are covered by the `web.rtc.RTCStatsReport` that includes
RTCRtpStreamStats dictionary.
`var ssrc = RTCRtpStreamStats.ssrc;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/ssrc`"
[this val]
(aset this "ssrc" val))
(defn track-id
"Property.
The `web.rtc.RTCRtpStreamStats` dictionary's trackId property
a string which uniquely identifies the `RTCMediaStreamTrackStats`
which contains the track statistics for the `web.audio.MediaStreamTrack`
which statistics are provided in this object.
`var trackID = RTCRtpStreamStats.trackId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/trackId`"
[this]
(-> this (.-trackId)))
(defn set-track-id!
"Property.
The `web.rtc.RTCRtpStreamStats` dictionary's trackId property
a string which uniquely identifies the `RTCMediaStreamTrackStats`
which contains the track statistics for the `web.audio.MediaStreamTrack`
which statistics are provided in this object.
`var trackID = RTCRtpStreamStats.trackId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/trackId`"
[this val]
(aset this "trackId" val))
(defn transport-id
"Property.
The `web.rtc.RTCRtpStreamStats` dictionary's transportId property
a string which uniquely identifies the object from which the
contained in the `RTCTransportStats` properties in the `web.rtc.RTCStatsReport`.
`var transportID = RTCRtpStreamStats.transportId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/transportId`"
[this]
(-> this (.-transportId)))
(defn set-transport-id!
"Property.
The `web.rtc.RTCRtpStreamStats` dictionary's transportId property
a string which uniquely identifies the object from which the
contained in the `RTCTransportStats` properties in the `web.rtc.RTCStatsReport`.
`var transportID = RTCRtpStreamStats.transportId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/transportId`"
[this val]
(aset this "transportId" val))
(defn fir-count
"Property.
The firCount property of the `web.rtc.RTCRtpStreamStats` dictionary
the number of Full Intra Request (FIR) packets have been sent
the receiver to the sender.
`var firCount = RTCRtpStreamStats.firCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/firCount`"
[this]
(-> this (.-firCount)))
(defn set-fir-count!
"Property.
The firCount property of the `web.rtc.RTCRtpStreamStats` dictionary
the number of Full Intra Request (FIR) packets have been sent
the receiver to the sender.
`var firCount = RTCRtpStreamStats.firCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/firCount`"
[this val]
(aset this "firCount" val))
(defn nack-count
"Property.
The nackCount property of the `web.rtc.RTCRtpStreamStats` dictionary
a numeric value indicating the number of times the receiver sent
NACK packet to the sender.
`var nackCount = RTCRtpStreamStats.nackCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/nackCount`"
[this]
(-> this (.-nackCount)))
(defn set-nack-count!
"Property.
The nackCount property of the `web.rtc.RTCRtpStreamStats` dictionary
a numeric value indicating the number of times the receiver sent
NACK packet to the sender.
`var nackCount = RTCRtpStreamStats.nackCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/nackCount`"
[this val]
(aset this "nackCount" val))
(defn pli-count
"Property.
The pliCount property of the `web.rtc.RTCRtpStreamStats` dictionary
the number of times the stream's receiving end sent a Picture
Indication (PLI) packet to the sender.
`var pliCount = RTCRtpStreamStats.pliCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/pliCount`"
[this]
(-> this (.-pliCount)))
(defn set-pli-count!
"Property.
The pliCount property of the `web.rtc.RTCRtpStreamStats` dictionary
the number of times the stream's receiving end sent a Picture
Indication (PLI) packet to the sender.
`var pliCount = RTCRtpStreamStats.pliCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/pliCount`"
[this val]
(aset this "pliCount" val))
(defn qp-sum
"Property.
The qpSum property of the `web.rtc.RTCRtpStreamStats` dictionary
a value generated by adding the Quantization Parameter (QP) values
every frame sent or received to date on the video track corresponding
this RTCRtpStreamStats object.
`var qpSum = RTCRtpStreamStats.qpSum;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/qpSum`"
[this]
(-> this (.-qpSum)))
(defn set-qp-sum!
"Property.
The qpSum property of the `web.rtc.RTCRtpStreamStats` dictionary
a value generated by adding the Quantization Parameter (QP) values
every frame sent or received to date on the video track corresponding
this RTCRtpStreamStats object.
`var qpSum = RTCRtpStreamStats.qpSum;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/qpSum`"
[this val]
(aset this "qpSum" val))
(defn sli-count
"Property.
The sliCount property of the `web.rtc.RTCRtpStreamStats` dictionary
how many Slice Loss Indication (SLI) packets were received by
sender.
`var sliCount = RTCRtpStreamStats.sliCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/sliCount`"
[this]
(-> this (.-sliCount)))
(defn set-sli-count!
"Property.
The sliCount property of the `web.rtc.RTCRtpStreamStats` dictionary
how many Slice Loss Indication (SLI) packets were received by
sender.
`var sliCount = RTCRtpStreamStats.sliCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpStreamStats/sliCount`"
[this val]
(aset this "sliCount" val))