/
RTCRtpReceiver.cljs
74 lines (53 loc) · 2.45 KB
/
RTCRtpReceiver.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
(ns web.rtc.RTCRtpReceiver
"The RTCRtpReceiver interface of the WebRTC API manages the reception
decoding of data for a `web.audio.MediaStreamTrack` on an `web.audio.RTCPeerConnection`."
(:refer-clojure :exclude []))
(defn get-contributing-sources
"Method.
The getContributingSources() method of the `web.rtc.RTCRtpReceiver`
returns an array of `web.rtc.RTCRtpContributingSource` instances,
corresponding to one CSRC (contributing source) identifier received
the current RTCRtpReceiver in the last ten seconds.
`var rtcRtpContributingSources = rtcRtpReceiver.getContributingSources()`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getContributingSources`"
[this ]
(-> this (.getContributingSources)))
(defn get-stats
"Method.
The `web.rtc.RTCRtpReceiver` method getStats() asynchronously
an `web.rtc.RTCStatsReport` object which provides statistics
incoming traffic on the owning `web.audio.RTCPeerConnection`,
a `js.Promise` whose fulfillment handler will be called once
results are available.
`var promise = RTCRtpReceiver.getStats();`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getStats`"
[this ]
(-> this (.getStats)))
(defn get-synchronization-sources
"Method.
The getSynchronizationSources() method of the `web.rtc.RTCRtpReceiver`
returns an array of `web.rtc.RTCRtpContributingSource` instances,
corresponding to one SSRC (synchronization source) identifier
by the current RTCRtpReceiver in the last ten seconds.
`var rtcRtpContributingSources = rtcRtpReceiver.getContributingSources()`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources`"
[this ]
(-> this (.getSynchronizationSources)))
(defn track
"Property.
The track read-only property of the `web.rtc.RTCRtpReceiver`
returns the `web.audio.MediaStreamTrack` associated with the
`web.rtc.RTCRtpReceiver` instance.
`var mediaStreamTrack = rtcRtpReceiver.track`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/track`"
[this]
(-> this (.track)))
(defn set-track!
"Property.
The track read-only property of the `web.rtc.RTCRtpReceiver`
returns the `web.audio.MediaStreamTrack` associated with the
`web.rtc.RTCRtpReceiver` instance.
`var mediaStreamTrack = rtcRtpReceiver.track`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/track`"
[this val]
(aset this "track" val))