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
.
Syntax
var voiceActivity = RTCRtpSynchronizationSource.voiceActivityFlag
Value
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.
Specifications
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browsers The definition of 'voiceActivityFlag' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
voiceActivityFlag | Chrome No support No | Edge No support No | Firefox
Full support
59
| IE No support No | Opera No support No | Safari ? | WebView Android No support No | Chrome Android No support No | Firefox Android
Full support
59
| Opera Android No support No | Safari iOS ? | Samsung Internet Android No support No |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- User must explicitly enable this feature.
- User must explicitly enable this feature.