只读 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.
候选推荐 初始定义。

浏览器兼容性

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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
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

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

用户必须明确启用此特征。

用户必须明确启用此特征。

元数据

  • 最后修改:
  1. RTCRtpSynchronizationSource
  2. 特性
    1. voiceActivityFlag