RTCDTMFSender class
The interface provides a mechanism for transmitting DTMF codes
on a WebRTC RTCPeerConnection. You gain access to the
connection's through the RTCRtpSender.dtmf
property on the
audio track you wish to send DTMF with.
The primary purpose for WebRTC's DTMF support is to allow
WebRTC-based communication clients to be connected to a
public-switched telephone network (PSTN) or other legacy
telephone service, including extant voice over IP (VoIP)
services. For that reason, DTMF can't be used between two
WebRTC-based devices, because there is no mechanism provided by
WebRTC for receiving DTMF codes.
EventTarget
RTCDTMFSender
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- RTCDTMFSender()
-
factory
Properties
- canInsertDTMF → bool
-
Available on RTCDTMFSender, provided by the PropsRTCDTMFSender extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
ontonechange
↔ EventHandlerNonNull<
Event> ? -
Available on RTCDTMFSender, provided by the PropsRTCDTMFSender extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toneBuffer → String
-
Available on RTCDTMFSender, provided by the PropsRTCDTMFSender extension
no setter
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
insertDTMF(
String tones, [int? duration = 100, int? interToneGap = 70]) → void -
Available on RTCDTMFSender, provided by the PropsRTCDTMFSender extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited