RTCDTMFSender.ontonechange
Draft: This page is not complete.
The ontonechange property of the RTCDTMFSender interface is used to set the event handler for the tonechange event, which is sent to the RTCDTMFSender each time a tone begins or ends. The event handler receives as input a single parameter of type RTCDTMFToneChangeEvent, which describes the change.
Syntax
RTCDTMFSender.ontonechange = toneChangeHandlerFunction;
Value
A function which is called when a tonechange event is sent to the RTCDTMFSender, indicating that a DTMF tone has either started playing, or if all tones have finished playing.
Example
tbd
Specifications
| Specification |
|---|
| WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtcdtmfsender-ontonechange |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
ontonechange |
27 |
79 |
52 |
No |
Yes |
13.1 |
≤37 |
27 |
52 |
Yes |
13.4 |
1.5 |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange