Back to Content

RTCRtpSender: dtmf property

files/en-us/web/api/rtcrtpsender/dtmf/index.md

latest1.1 KB
Original Source

{{APIRef("WebRTC")}}

The read-only dtmf property on the {{domxref("RTCRtpSender")}} interface returns a {{domxref("RTCDTMFSender")}} object which can be used to send {{Glossary("DTMF")}} tones over the {{domxref("RTCPeerConnection")}}. See Using DTMF for details on how to make use of the returned RTCDTMFSender object.

Value

An {{domxref("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 {{domxref("RTCPeerConnection")}} as a whole doesn't support DTMF.

[!NOTE] Only audio tracks can support DTMF, and typically only one audio track per RTCPeerConnection will have an associated {{domxref("RTCDTMFSender")}}

Example

tbd

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also