只读
voiceActivityFlag
特性为
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.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'voiceActivityFlag' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
voiceActivityFlag
|
Chrome 不支持 No | Edge 不支持 No | Firefox 59 | IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No | Chrome Android 不支持 No | Firefox Android 59 | Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
完整支持
不支持
兼容性未知
用户必须明确启用此特征。
RTCRtpSynchronizationSource
voiceActivityFlag