W3C home > Mailing lists > Public > public-webrtc@w3.org > November 2014

Proposal for removing createDTMFSender and canInsertDTMF

From: Peter Thatcher <pthatcher@google.com>
Date: Mon, 03 Nov 2014 21:37:42 +0000
Message-ID: <CAJrXDUFDPacRYxaeDKNe=nkpQ7vJntczAhBatoXms4f=eTnKkQ@mail.gmail.com>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
At TPAC 2014, we realized that now that we have RtpSender, we don't need a
DTMFSender to be tied to a track.  We can tie it to an RtpSender instead,
and that would clean things up a fair bit.

Based on that, I propose we:

1. Remove RTCPeerConnection.createDTMFSender
2. Add RTCRtpSender.dtmf, of type "RTCDTMFSender?".
3. Remove RTCDTMFSender.canInsertDTMF and RTCDTMFSender.track.

The rule is: If RtpSender.dtmf is non-null, you can send DTMF.  Here is an

var pc = ...;
var track = ...;
var rtpSender = pc.addTrack(track);
if (rtpSender.dtmf) {

And here is the WebIDL:

 interface RTCDTMFSender {
    void insertDTMF(DOMString tones,
                    optional long duration = 100,
                    optional long interToneGap = 70);
                attribute EventHandler ontonechange;
    readonly    attribute DOMString    toneBuffer;
    readonly    attribute long         duration;
    readonly    attribute long         interToneGap;

partial interface RtpSender {
    readonly attribute RTCDTMFSender? dtmf;
Received on Monday, 3 November 2014 21:44:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:42 UTC