这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
RTCDTMFToneChangeEvent()
构造函数创建新
RTCDTMFToneChangeEvent
.
var event = new RTCDTMFToneChangeEvent(type, options);
type
DOMString
containing the name of the event. This is always
"tonechange"
.
选项
RTCDTMFToneChangeEventInit
, which may contain one or more of the following fields:
tone
DOMString
containing a single DTMF tone character which has just begun to play, or an empty string (
""
) to indicate that the previous tone has stopped playing. See
Tone characters
for details on what characters are permitted.
A newly-created
RTCDTMFToneChangeEvent
, configured as specified in the provided options.
These characters represent the digit keys on a telephone keypad.
These correspond to the similarly-labeled keys which are typically on the bottom row of the telephone keypad.
This character instructs the dialing process to pause for two seconds before sending the next character in the buffer.
All other characters are unrecognized and will cause
insertDTMF()
to throw an
InvalidCharacterError
异常。
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCDTMFToneChangeEvent()' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
RTCDTMFToneChangeEvent()
构造函数
|
Chrome 27 | Edge ≤18 | Firefox 52 | IE No | Opera Yes | Safari ? | WebView Android 4.4 | Chrome Android 27 | Firefox Android 52 | Opera Android Yes | Safari iOS ? | Samsung Internet Android 1.5 |
完整支持
不支持
兼容性未知
RTCDTMFSender
.
RTCDTMFToneChangeEvent
RTCDTMFToneChangeEvent()
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpSender
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent