7.1 RTCRtpSender Interface Extensions
The Peer-to-peer DTMF API extends the RTCRtpSender
interface as described below.
- WebIDL partial interface
RTCRtpSender
{- readonly attribute
RTCDTMFSender
?dtmf
;- };
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"
.