Re: [rtcweb] Low Level Javascript API Proposal avail on the webrtc list

Saul Ibarra Corretge <saul@ag-projects.com> Sat, 08 October 2011 09:15 UTC

Return-Path: <saul@ag-projects.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 27B2B21F8B27 for <rtcweb@ietfa.amsl.com>; Sat, 8 Oct 2011 02:15:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.988
X-Spam-Level:
X-Spam-Status: No, score=-1.988 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_MISMATCH_NET=0.611]
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 1puwSyOXx3IX for <rtcweb@ietfa.amsl.com>; Sat, 8 Oct 2011 02:15:29 -0700 (PDT)
Received: from mail.sipthor.net (node06.dns-hosting.info [85.17.186.6]) by ietfa.amsl.com (Postfix) with ESMTP id 5B84821F8B2D for <rtcweb@ietf.org>; Sat, 8 Oct 2011 02:15:29 -0700 (PDT)
Received: by mail.sipthor.net (Postfix, from userid 5001) id DF4EEB01B8; Sat, 8 Oct 2011 11:18:44 +0200 (CEST)
Received: from [192.168.1.134] (235.4.222.87.dynamic.jazztel.es [87.222.4.235]) by mail.sipthor.net (Postfix) with ESMTPSA id 9EEECB019E; Sat, 8 Oct 2011 11:18:43 +0200 (CEST)
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="iso-8859-1"
From: Saul Ibarra Corretge <saul@ag-projects.com>
In-Reply-To: <7F79D20D-42DF-49D0-8D2F-A11ACE3A87C8@csperkins.org>
Date: Sat, 08 Oct 2011 11:18:43 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <BF672648-93D6-4BB3-90C0-7A70D8D832AB@ag-projects.com>
References: <545388B3-3189-4291-BD1D-52898B888F3E@phonefromhere.com> <CAD5OKxt_3bnODVCWxrrrKVWO3R3Or1FjhMOHwgUzq3-h6dW0LA@mail.gmail.com> <4E8BC0ED.2020001@skype.net> <CAD5OKxv_xO0y+71X6ag-2te6TTey4Z77ezvBuYwS89022rL1hQ@mail.gmail.com> <4E8BDC3B.7000501@skype.net> <CAD5OKxtoePfjm3_-0UxFVh3zgP498M74JCDHp7eok1yqdZy=XQ@mail.gmail.com> <CABRok6=A+b4Q-Gm6BMUF_VOy9i5WUO9BXR+V_2vFu_GqimuDRQ@mail.gmail.com> <CAD5OKxv6m+fud_whMBQNt9wWC6kYGi31rFY0uB=iUuC_ymVXcQ@mail.gmail.com> <7F79D20D-42DF-49D0-8D2F-A11ACE3A87C8@csperkins.org>
To: Colin Perkins <csp@csperkins.org>
X-Mailer: Apple Mail (2.1084)
Cc: rtcweb@ietf.org
Subject: Re: [rtcweb] Low Level Javascript API Proposal avail on the webrtc list
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: Sat, 08 Oct 2011 09:15:30 -0000

On Oct 7, 2011, at 12:11 AM, Colin Perkins wrote:

> On 5 Oct 2011, at 18:20, Roman Shpount wrote:
>> On Wed, Oct 5, 2011 at 7:00 AM, Neil Stratford <neils@belltower.co.uk> wrote:
>> I'm not sure I understand why this is such a problem. XMPP/Jingle defines it's own mapping, which is a common VoIP protocol that is widely supported. I'd much rather that the JS API is as expressive as possible in codec specific matters - for example even to the point of providing callbacks to the JS on certain codec level events, such as decoding a DTMF digit.
>>  
>> What we need is some way to expose all possible codec parameter combinations to JavaScript API. MMUSIC/PAYLOAD specifications for codec typically define CODEC parameters and how they are encoded in SDP/MIME content type, but they fall short of defining a way to list all the capabilities.
> 
> I'm not convinced that exposing all possible codec parameter combinations is an appropriate goal. There is simply too much flexibility present with many of the codecs, especially in combination, for the signalling to be reasonable if all the flexibility is exposed. Better, I think, for the browser to expose a set of known-reasonable combinations, and parameter ranges, from which the most appropriate choice is picked.

Maybe capabilities could be expressed in terms of "codecs" and "profiles". A profile is a set of properties attached to a codec under a given name, lets say codec H264 with "HD" profile or "SD" profile. Having the ability to make a custom profile would be nice, for those who need/want to have a more fine grained control over it.

-- 
Saúl Ibarra Corretgé
AG Projects