RTCDTMFSender: canInsertDTMF property
The canInsertDTMF
read-only property of the RTCDTMFSender
interface returns a boolean value which indicates whether the RTCDTMFSender
is capable of sending DTMF tones over the RTCPeerConnection
.
Value
A boolean value which is true
if the RTCDTMFSender
is capable of sending DTMF tones, or false
if it is not.
Examples
js
if (sender.dtmf.canInsertDTMF) {
const duration = 500;
sender.dtmf.insertDTMF("1234", duration);
} else {
console.log("DTMF function not available");
}
Specifications
Specification |
---|
WebRTC: Real-Time Communication in Browsers # dom-rtcdtmfsender-caninsertdtmf |
Browser compatibility
BCD tables only load in the browser