只读
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. |
候选推荐 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
完整支持
不支持
兼容性未知
RTCRtpSender
dtmf
track
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent