7.1 RTCRtpSender Interface Extensions

The Peer-to-peer DTMF API extends the RTCRtpSender interface as described below.

  1. WebIDL partial interface RTCRtpSender {
  2. readonly attribute RTCDTMFSender? dtmf;
  3. };

Attributes

dtmf of type RTCDTMFSender, readonly, nullable

On getting, the dtmf attribute returns the value of the [[Dtmf]] internal slot, which represents a RTCDTMFSender which can be used to send DTMF, or null if unset. The [[Dtmf]] internal slot is set when the kind of an RTCRtpSender‘s [[SenderTrack]] is "audio".