Re: [rtcweb] The DTMF API [Was: Traffic should be encrypted. (Re: Let's define the purpose of WebRTC)]

Jonathan Lennox <jonathan@vidyo.com> Wed, 16 November 2011 07:20 UTC

Return-Path: <jonathan@vidyo.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A17B711E80F5 for <rtcweb@ietfa.amsl.com>; Tue, 15 Nov 2011 23:20:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.447
X-Spam-Level:
X-Spam-Status: No, score=-2.447 tagged_above=-999 required=5 tests=[AWL=0.151, BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v5wVhxR9PAGK for <rtcweb@ietfa.amsl.com>; Tue, 15 Nov 2011 23:20:07 -0800 (PST)
Received: from mxout.myoutlookonline.com (mxout.myoutlookonline.com [64.95.72.241]) by ietfa.amsl.com (Postfix) with ESMTP id C0A4221F9322 for <rtcweb@ietf.org>; Tue, 15 Nov 2011 23:20:06 -0800 (PST)
Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id DD650553CA3; Wed, 16 Nov 2011 02:20:05 -0500 (EST)
X-Virus-Scanned: by SpamTitan at mail.lan
Received: from HUB015.mail.lan (unknown [10.110.2.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 825AE5534FD; Wed, 16 Nov 2011 02:20:05 -0500 (EST)
Received: from BE235.mail.lan ([10.110.32.235]) by HUB015.mail.lan ([10.110.17.15]) with mapi; Wed, 16 Nov 2011 02:20:05 -0500
From: Jonathan Lennox <jonathan@vidyo.com>
To: Justin Uberti <juberti@google.com>, Hadriel Kaplan <HKaplan@acmepacket.com>
Date: Wed, 16 Nov 2011 02:20:02 -0500
Thread-Topic: [rtcweb] The DTMF API [Was: Traffic should be encrypted. (Re: Let's define the purpose of WebRTC)]
Thread-Index: AcykLg6tOCLxW3VqT2eCsgDUR/zumgAAQhFA
Message-ID: <C3759687E4991243A1A0BD44EAC823034C439A3A4C@BE235.mail.lan>
References: <CAOJ7v-18cNX8xussOPXSEoFxAARu8WriL8XgxPVUXBrWhz=FFg@mail.gmail.com> <4EC28CF5.6000109@jesup.org> <D666B5A5-BF2E-46B7-B97F-06C3736E8357@acmepacket.com> <CAOJ7v-3v5Zu9ZOuL3Qqu+aEDJ4a3cqH+oJ2yj_ewOpxKe=jA_g@mail.gmail.com>
In-Reply-To: <CAOJ7v-3v5Zu9ZOuL3Qqu+aEDJ4a3cqH+oJ2yj_ewOpxKe=jA_g@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_C3759687E4991243A1A0BD44EAC823034C439A3A4CBE235maillan_"
MIME-Version: 1.0
Cc: Randell Jesup <randell-ietf@jesup.org>, "<rtcweb@ietf.org>" <rtcweb@ietf.org>
Subject: Re: [rtcweb] The DTMF API [Was: Traffic should be encrypted. (Re: Let's define the purpose of WebRTC)]
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Nov 2011 07:20:07 -0000

Justin Uberti writes:
[Local]MediaStreamTrack.sendDTMF(in DOMString tones, in optional long duration)

ex:
sendDTMF("1")  // plays tone 1 for 50 ms
sendDTMF("2", 200)  // plays tone 2 for 200 ms
sendDTMF("123")  // plays tones 1, 2, 3 in succession, each for 50 ms
sendDTMF("456", 200)  // plays tones 4, 5, 6 in succession, each for 200 ms

For some UI models, you may need start-DTMF / stop-DTMF APIs, mapping to mousedown / mouseup on a button or similar.  You don’t know in advance how long the user will hold the key down.

--
Jonathan Lennox
jonathan@vidyo.com