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

Justin Uberti <juberti@google.com> Wed, 16 November 2011 11:24 UTC

Return-Path: <juberti@google.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 4EA8821F943E for <rtcweb@ietfa.amsl.com>; Wed, 16 Nov 2011 03:24:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.877
X-Spam-Level:
X-Spam-Status: No, score=-102.877 tagged_above=-999 required=5 tests=[AWL=0.099, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
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 zMrqpRCjLZvv for <rtcweb@ietfa.amsl.com>; Wed, 16 Nov 2011 03:24:27 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by ietfa.amsl.com (Postfix) with ESMTP id A2D4221F942E for <rtcweb@ietf.org>; Wed, 16 Nov 2011 03:24:27 -0800 (PST)
Received: by iaeo4 with SMTP id o4so540380iae.31 for <rtcweb@ietf.org>; Wed, 16 Nov 2011 03:24:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-system-of-record; bh=7hyBX+DDu5hpA9VZHR2zydbMDWbQKG0qCE4fISxfsxU=; b=YyEUJfVnrxdttXMYE8q1IlBSSBOCeSia60yL9K2+LJ7cxFgWrwTActnGjXKFlYVViP Ssp8VXvM63KD9GX4cS1Q==
Received: by 10.231.28.106 with SMTP id l42mr7343964ibc.66.1321442667274; Wed, 16 Nov 2011 03:24:27 -0800 (PST)
Received: by 10.231.28.106 with SMTP id l42mr7343958ibc.66.1321442667149; Wed, 16 Nov 2011 03:24:27 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.194.134 with HTTP; Wed, 16 Nov 2011 03:24:06 -0800 (PST)
In-Reply-To: <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> <C3759687E4991243A1A0BD44EAC823034C439A3A4C@BE235.mail.lan>
From: Justin Uberti <juberti@google.com>
Date: Wed, 16 Nov 2011 06:24:06 -0500
Message-ID: <CAOJ7v-06JrC9Hh5Ud--AtEh=oe74G=GjgKhwM6OWPTBVnW=usQ@mail.gmail.com>
To: Jonathan Lennox <jonathan@vidyo.com>
Content-Type: multipart/alternative; boundary="001517740adcc43bd004b1d85883"
X-System-Of-Record: true
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 11:24:28 -0000

On Wed, Nov 16, 2011 at 2:20 AM, Jonathan Lennox <jonathan@vidyo.com> wrote:

> 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.
>

I've been trying to avoid that complexity. If it's really needed, we can
add it, but given that DTMF is kind of a wart I'd prefer to keep the
support as minimal as possible.

Of course we could let you cancel an existing press by passing in "", so
you could play a really long tone and cancel it through this API.

> ****
>
> ** **
>
> -- ****
>
> Jonathan Lennox****
>
> jonathan@vidyo.com****
>
> ** **
>
> ** **
>