The read-only voiceActivityFlag
property of the RTCRtpSynchronizationSource
interface indicates whether or not the most recent RTP packet on the source includes voice activity. This is only present if the stream is using the voice activity detection feature; see the RTCOfferOptions
flag voiceActivityDetection
.
var voiceActivity = RTCRtpSynchronizationSource.voiceActivityFlag
A Boolean value which is true
if voice activity is present in the most recently received RTP packet played by the associated source, or false
if voice activity is not present.
This property is omitted entirely if voice activity detection is not enabled on the source, or if the RFC 6464 extension header isn't present.
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browsers The definition of 'voiceActivityFlag' in that specification. | Candidate Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | No | ? | 59
|
No | No | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | No | No | ? | 59
|
No | ? | No |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSynchronizationSource/voiceActivityFlag