-
Notifications
You must be signed in to change notification settings - Fork 0
/
RTCInboundRtpStreamStats.cljs
460 lines (323 loc) · 15.5 KB
/
RTCInboundRtpStreamStats.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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
(ns web.rtc.RTCInboundRtpStreamStats
"The WebRTC API's RTCInboundRtpStreamStats dictionary, based upon
and `web.rtc.RTCStats`, contains statistics related to the receiving
of an RTP stream on the local end of the `web.audio.RTCPeerConnection`."
(:refer-clojure :exclude []))
(defn average-rtcp-interval
"Property.
The averageRtcpInterval property of the `web.rtc.RTCInboundRtpStreamStats`
is a floating-point value indicating the average RTCP transmission
in seconds.
`var averageRtcpInterval = rtcInboundRtpStreamStats.averageRtcpInterval;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/averageRtcpInterval`"
[this]
(-> this (.-averageRtcpInterval)))
(defn set-average-rtcp-interval!
"Property.
The averageRtcpInterval property of the `web.rtc.RTCInboundRtpStreamStats`
is a floating-point value indicating the average RTCP transmission
in seconds.
`var averageRtcpInterval = rtcInboundRtpStreamStats.averageRtcpInterval;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/averageRtcpInterval`"
[this val]
(aset this "averageRtcpInterval" val))
(defn bytes-received
"Property.
The `web.rtc.RTCInboundRtpStreamStats` dictionary's bytesReceived
is an integer value which indicates the total number of bytes
so far from this synchronization source (SSRC).
`var bytesReceived = rtcInboundRtpStreamStats.bytesReceived;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/bytesReceived`"
[this]
(-> this (.-bytesReceived)))
(defn set-bytes-received!
"Property.
The `web.rtc.RTCInboundRtpStreamStats` dictionary's bytesReceived
is an integer value which indicates the total number of bytes
so far from this synchronization source (SSRC).
`var bytesReceived = rtcInboundRtpStreamStats.bytesReceived;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/bytesReceived`"
[this val]
(aset this "bytesReceived" val))
(defn fec-packets-discarded
"Property.
The fecPacketsDiscarded property of the `web.rtc.RTCInboundRtpStreamStats`
is a numeric value indicating the number of RTP Forward Error
(FEC) packets that have been discarded.
`var fecPacketsDiscarded = rtcInboundRtpStreamStats.fecPacketsDiscarded;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/fecPacketsDiscarded`"
[this]
(-> this (.-fecPacketsDiscarded)))
(defn set-fec-packets-discarded!
"Property.
The fecPacketsDiscarded property of the `web.rtc.RTCInboundRtpStreamStats`
is a numeric value indicating the number of RTP Forward Error
(FEC) packets that have been discarded.
`var fecPacketsDiscarded = rtcInboundRtpStreamStats.fecPacketsDiscarded;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/fecPacketsDiscarded`"
[this val]
(aset this "fecPacketsDiscarded" val))
(defn fec-packets-received
"Property.
The fecPacketsReceived property of the `web.rtc.RTCInboundRtpStreamStats`
indicates how many Forward Error Correction (FEC) packets have
received by this RTP receiver from the remote peer.
`var fecPacketsReceived = rtcInboundRtpStreamStats.fecPacketsReceived;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/fecPacketsReceived`"
[this]
(-> this (.-fecPacketsReceived)))
(defn set-fec-packets-received!
"Property.
The fecPacketsReceived property of the `web.rtc.RTCInboundRtpStreamStats`
indicates how many Forward Error Correction (FEC) packets have
received by this RTP receiver from the remote peer.
`var fecPacketsReceived = rtcInboundRtpStreamStats.fecPacketsReceived;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/fecPacketsReceived`"
[this val]
(aset this "fecPacketsReceived" val))
(defn fir-count
"Property.
The firCount property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the number of Full Intra Request (FIR) packets have
sent by the receiver to the sender.
`var firCount = rtcInboundRtpStreamStats.firCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/firCount`"
[this]
(-> this (.-firCount)))
(defn set-fir-count!
"Property.
The firCount property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the number of Full Intra Request (FIR) packets have
sent by the receiver to the sender.
`var firCount = rtcInboundRtpStreamStats.firCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/firCount`"
[this val]
(aset this "firCount" val))
(defn frames-decoded
"Property.
The framesDecoded property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the total number of frames which have been decoded
for this media source.
`var framesDecoded = rtcInboundRtpStreamStats.framesDecoded;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/framesDecoded`"
[this]
(-> this (.-framesDecoded)))
(defn set-frames-decoded!
"Property.
The framesDecoded property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the total number of frames which have been decoded
for this media source.
`var framesDecoded = rtcInboundRtpStreamStats.framesDecoded;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/framesDecoded`"
[this val]
(aset this "framesDecoded" val))
(defn last-packet-received-timestamp
"Property.
The lastPacketReceivedTimestamp property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the time at which the most recently received packet
from this source.
`var lastPacketTimestamp = rtcInboundRtpStreamStats.lastPacketReceivedTimestamp;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/lastPacketReceivedTimestamp`"
[this]
(-> this (.-lastPacketReceivedTimestamp)))
(defn set-last-packet-received-timestamp!
"Property.
The lastPacketReceivedTimestamp property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the time at which the most recently received packet
from this source.
`var lastPacketTimestamp = rtcInboundRtpStreamStats.lastPacketReceivedTimestamp;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/lastPacketReceivedTimestamp`"
[this val]
(aset this "lastPacketReceivedTimestamp" val))
(defn nack-count
"Property.
The nackCount property of the `web.rtc.RTCInboundRtpStreamStats`
is a numeric value indicating the number of times the receiver
a NACK packet to the sender.
`var nackCount = rtcInboundRtpStreamStats.nackCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/nackCount`"
[this]
(-> this (.-nackCount)))
(defn set-nack-count!
"Property.
The nackCount property of the `web.rtc.RTCInboundRtpStreamStats`
is a numeric value indicating the number of times the receiver
a NACK packet to the sender.
`var nackCount = rtcInboundRtpStreamStats.nackCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/nackCount`"
[this val]
(aset this "nackCount" val))
(defn packets-duplicated
"Property.
The packetsDuplicated property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the total number of packets discarded because they
duplicates of previously-received packets.
`var packetsDuplicated = rtcInboundRtpStreamStats.packetsDuplicated;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/packetsDuplicated`"
[this]
(-> this (.-packetsDuplicated)))
(defn set-packets-duplicated!
"Property.
The packetsDuplicated property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the total number of packets discarded because they
duplicates of previously-received packets.
`var packetsDuplicated = rtcInboundRtpStreamStats.packetsDuplicated;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/packetsDuplicated`"
[this val]
(aset this "packetsDuplicated" val))
(defn packets-failed-decryption
"Property.
The packetsFailedDecryption property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the total number of RTP packets which failed to be
successfully after being received by the local end of the connection
this session.
`var packetsFailedDecryption = rtcInboundRtpStreamStats.packetsFailedDecryption;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/packetsFailedDecryption`"
[this]
(-> this (.-packetsFailedDecryption)))
(defn set-packets-failed-decryption!
"Property.
The packetsFailedDecryption property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the total number of RTP packets which failed to be
successfully after being received by the local end of the connection
this session.
`var packetsFailedDecryption = rtcInboundRtpStreamStats.packetsFailedDecryption;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/packetsFailedDecryption`"
[this val]
(aset this "packetsFailedDecryption" val))
(defn per-dscp-packets-received
"Property.
The perDscpPacketsReceived property of the `web.rtc.RTCInboundRtpStreamStats`
is a record comprised of key/value pairs in which each key is
string representation of a Differentiated Services Code Point
the value is the number of packets received for that DCSP.
`var perDscpPacketsReceived = rtcInboundRtpStreamStats.perDscpPacketsReceived;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/perDscpPacketsReceived`"
[this]
(-> this (.-perDscpPacketsReceived)))
(defn set-per-dscp-packets-received!
"Property.
The perDscpPacketsReceived property of the `web.rtc.RTCInboundRtpStreamStats`
is a record comprised of key/value pairs in which each key is
string representation of a Differentiated Services Code Point
the value is the number of packets received for that DCSP.
`var perDscpPacketsReceived = rtcInboundRtpStreamStats.perDscpPacketsReceived;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/perDscpPacketsReceived`"
[this val]
(aset this "perDscpPacketsReceived" val))
(defn pli-count
"Property.
The pliCount property of the `web.rtc.RTCInboundRtpStreamStats`
states the number of times the `web.rtc.RTCRtpReceiver` described
these statistics sent a Picture Loss Indication (PLI) packet
the sender.
`var pliCount = RTCInboundRtpStreamStats.pliCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/pliCount`"
[this]
(-> this (.-pliCount)))
(defn set-pli-count!
"Property.
The pliCount property of the `web.rtc.RTCInboundRtpStreamStats`
states the number of times the `web.rtc.RTCRtpReceiver` described
these statistics sent a Picture Loss Indication (PLI) packet
the sender.
`var pliCount = RTCInboundRtpStreamStats.pliCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/pliCount`"
[this val]
(aset this "pliCount" val))
(defn qp-sum
"Property.
The qpSum property of the `web.rtc.RTCInboundRtpStreamStats`
is a value generated by adding the Quantization Parameter (QP)
for every frame sent or received to date on the video track corresponding
this RTCInboundRtpStreamStats object.
`var qpSum = rtcInboundRtpStreamStats.qpSum;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/qpSum`"
[this]
(-> this (.-qpSum)))
(defn set-qp-sum!
"Property.
The qpSum property of the `web.rtc.RTCInboundRtpStreamStats`
is a value generated by adding the Quantization Parameter (QP)
for every frame sent or received to date on the video track corresponding
this RTCInboundRtpStreamStats object.
`var qpSum = rtcInboundRtpStreamStats.qpSum;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/qpSum`"
[this val]
(aset this "qpSum" val))
(defn receiver-id
"Property.
The receiverId property of the `web.rtc.RTCInboundRtpStreamStats`
specifies the `id` of the `RTCAudioReceiverStats` or `RTCVideoReceiverStats`
representing the `web.rtc.RTCRtpReceiver` receiving the stream.
`var receiverStatsId = rtcInboundRtpStreamStats.receiverId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/receiverId`"
[this]
(-> this (.-receiverId)))
(defn set-receiver-id!
"Property.
The receiverId property of the `web.rtc.RTCInboundRtpStreamStats`
specifies the `id` of the `RTCAudioReceiverStats` or `RTCVideoReceiverStats`
representing the `web.rtc.RTCRtpReceiver` receiving the stream.
`var receiverStatsId = rtcInboundRtpStreamStats.receiverId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/receiverId`"
[this val]
(aset this "receiverId" val))
(defn remote-id
"Property.
The remoteId property of the `web.rtc.RTCInboundRtpStreamStats`
specifies the `id` of the `RTCRemoteOutboundRtpStreamStats` object
the remote peer's `web.audio.RTCRtpSender` which is sending the
to the local peer.
`var remoteStatsId = rtcInboundRtpStreamStats.remoteId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/remoteId`"
[this]
(-> this (.-remoteId)))
(defn set-remote-id!
"Property.
The remoteId property of the `web.rtc.RTCInboundRtpStreamStats`
specifies the `id` of the `RTCRemoteOutboundRtpStreamStats` object
the remote peer's `web.audio.RTCRtpSender` which is sending the
to the local peer.
`var remoteStatsId = rtcInboundRtpStreamStats.remoteId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/remoteId`"
[this val]
(aset this "remoteId" val))
(defn sli-count
"Property.
The sliCount property of the `web.rtc.RTCInboundRtpStreamStats`
indicates how many Slice Loss Indication (SLI) packets the `web.rtc.RTCRtpReceiver`
which this object provdes statistics sent to the remote `web.audio.RTCRtpSender`.
`var sliCount = rtcInboundRtpStreamStats.sliCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/sliCount`"
[this]
(-> this (.-sliCount)))
(defn set-sli-count!
"Property.
The sliCount property of the `web.rtc.RTCInboundRtpStreamStats`
indicates how many Slice Loss Indication (SLI) packets the `web.rtc.RTCRtpReceiver`
which this object provdes statistics sent to the remote `web.audio.RTCRtpSender`.
`var sliCount = rtcInboundRtpStreamStats.sliCount;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/sliCount`"
[this val]
(aset this "sliCount" val))
(defn track-id
"Property.
The trackId property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the `id` of the `RTCReceiverAudioTrackAttachmentStats`
`RTCReceiverVideoTrackAttachmentStats` object representing the
which is receiving the incoming media.
`var trackStatsId = rtcInboundRtpStreamStats.trackId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/trackId`"
[this]
(-> this (.-trackId)))
(defn set-track-id!
"Property.
The trackId property of the `web.rtc.RTCInboundRtpStreamStats`
indicates the `id` of the `RTCReceiverAudioTrackAttachmentStats`
`RTCReceiverVideoTrackAttachmentStats` object representing the
which is receiving the incoming media.
`var trackStatsId = rtcInboundRtpStreamStats.trackId;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/trackId`"
[this val]
(aset this "trackId" val))