-
Notifications
You must be signed in to change notification settings - Fork 0
/
RTCOfferAnswerOptions.cljs
42 lines (33 loc) · 1.52 KB
/
RTCOfferAnswerOptions.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
(ns web.rtc.RTCOfferAnswerOptions
"The WebRTC API's RTCOfferAnswerOptions dictionary is used to
options that configure and control the process of creating WebRTC
or answers."
(:refer-clojure :exclude []))
(defn voice-activity-detection
"Property.
The voiceActivityDetection property of the `web.rtc.RTCOfferAnswerOptions`
is used to specify whether or not to use automatic voice detection
the audio on an `web.audio.RTCPeerConnection`. The default value,
indicates that voice detection should be used and that if possible,
user agent should automatically disable or mute outgoing audio
the audio source is not sensing a human voice.
`var options = {
voiceActivityDetection: trueOrFalse
};`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCOfferAnswerOptions/voiceActivityDetection`"
[this]
(-> this (.-voiceActivityDetection)))
(defn set-voice-activity-detection!
"Property.
The voiceActivityDetection property of the `web.rtc.RTCOfferAnswerOptions`
is used to specify whether or not to use automatic voice detection
the audio on an `web.audio.RTCPeerConnection`. The default value,
indicates that voice detection should be used and that if possible,
user agent should automatically disable or mute outgoing audio
the audio source is not sensing a human voice.
`var options = {
voiceActivityDetection: trueOrFalse
};`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCOfferAnswerOptions/voiceActivityDetection`"
[this val]
(aset this "voiceActivityDetection" val))