只读 dtmf property on the RTCRtpSender interface returns a RTCDTMFSender object which can be used to send DTMF tones over the RTCPeerConnection 。见 Using DTMF for details on how to make use of th e 返回 RTCDTMFSender 对象。

句法

var dtmfSender = RTCRtpSender.dtmf;
					

RTCDTMFSender which can be used to send DTMF over the RTP session, or null if the track being carried by the RTP session or the RTCPeerConnection as a whole doesn't support DTMF.

Only audio tracks can support DTMF, and typically only one audio track per RTCPeerConnection will have an associated RTCDTMFSender

范例

tbd

规范

规范 状态 注释
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCRtpSender.dtmf' 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
dtmf Chrome Yes Edge ≤18 Firefox 52 IE 不支持 No Opera Yes Safari ? WebView Android Yes Chrome Android Yes Firefox Android 52 Opera Android Yes Safari iOS ? Samsung Internet Android Yes

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

另请参阅

元数据

  • 最后修改: