Re: [rtcweb] New Draft - WebRTC JS Object API Model

Iñaki Baz Castillo <ibc@aliax.net> Mon, 01 July 2013 20:38 UTC

Return-Path: <ibc@aliax.net>
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 8CB7611E8254 for <rtcweb@ietfa.amsl.com>; Mon, 1 Jul 2013 13:38:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.627
X-Spam-Level:
X-Spam-Status: No, score=-2.627 tagged_above=-999 required=5 tests=[AWL=0.050, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-1]
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 T4U6Dw+DqvGS for <rtcweb@ietfa.amsl.com>; Mon, 1 Jul 2013 13:38:15 -0700 (PDT)
Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by ietfa.amsl.com (Postfix) with ESMTP id 4E40111E8241 for <rtcweb@ietf.org>; Mon, 1 Jul 2013 13:38:15 -0700 (PDT)
Received: by mail-qa0-f49.google.com with SMTP id hu16so2368473qab.1 for <rtcweb@ietf.org>; Mon, 01 Jul 2013 13:38:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=flT+uKnwPRR/TV5D4eVAcld1uF9t6e9zfSU1mgvXuws=; b=B6cxqwDVkMtZkyNaIH4AYzVBFmMoQc8S/qKkeLc11CxsjFjF0fJcYn1lM3xB4IrHBu BQtsDj8Fpjq5FbFJUjvGVgyn68srz16/Hwp91/pXlxjNH7oC2hINdcYnbvKnQiqBSt63 tVanm0yhMTjbdCW4AmeSA1rF/Ubj1/VcWzV1gXImEAfuN0KkfxAju3y8qTgsNdYLx1Kh gZHdaXy1he2TYQhquSP7UTwLq8D339WHzV/dvERjQaiB6n3Bo6V48MUZxzsK6mxnTCzS 96cduldW5tHqS6uIPfYTNDyxVkeiS48VrZETExqbkgukD9L3QwyXrYj7g4+cSaLdabmq TXgQ==
X-Received: by 10.49.35.108 with SMTP id g12mr34761246qej.86.1372711094552; Mon, 01 Jul 2013 13:38:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.49.67.65 with HTTP; Mon, 1 Jul 2013 13:37:54 -0700 (PDT)
In-Reply-To: <1447FA0C20ED5147A1AA0EF02890A64B1C30979C@ESESSMB209.ericsson.se>
References: <51CA6FEE.6030702@hookflash.com> <1447FA0C20ED5147A1AA0EF02890A64B1C3093E0@ESESSMB209.ericsson.se> <CALiegfmsahUM6w00thQSCu3CpKse2C3LKSb1LzkwodNgKTOK0g@mail.gmail.com> <1447FA0C20ED5147A1AA0EF02890A64B1C309655@ESESSMB209.ericsson.se> <CALiegfnAN9SJx0nLyegFJoQscG-18Gs4umd-pe7S3y6xREpByQ@mail.gmail.com> <CA+9kkMC5FoxKSz7DuHxN8cEO=0PDpoAGrLshpFmnDe3gco06cw@mail.gmail.com> <CALiegfnpj+nBdhn0g8A7iTdXKZdqvwyffjdLAOuM_qQkhTuKew@mail.gmail.com> <CA+9kkMA1PhoJB9qGUnXDUHRJNac5OszM4o5O7-6aCU-ahszMNw@mail.gmail.com> <CALiegfkei-dS-EHt2vqofft_uhKNz+UuK7R5LX3bgDkh=0ZwqQ@mail.gmail.com> <1447FA0C20ED5147A1AA0EF02890A64B1C30979C@ESESSMB209.ericsson.se>
From: =?UTF-8?Q?I=C3=B1aki_Baz_Castillo?= <ibc@aliax.net>
Date: Mon, 1 Jul 2013 22:37:54 +0200
Message-ID: <CALiegfn1+ivOONYWXKxvffVbueoaDuy47NXY-xgMNkqs-ZFtWg@mail.gmail.com>
To: =?UTF-8?Q?Stefan_H=C3=A5kansson_LK?= <stefan.lk.hakansson@ericsson.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQnTFvVsDFc+x9dx4VHzHD1FIjR/5yxeIIxJtD8ITjWea2KLJBrsv8M2XpB5Gx5yblT+5lHB
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] New Draft - WebRTC JS Object API Model
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: Mon, 01 Jul 2013 20:38:20 -0000

2013/7/1 Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>om>:
> What if first browser generated a JS Object that said (for this example
> we assume one single audio track) it preferred to send audio using
> Opus2.0 but could also do Opus and G.711. If the second browser (which
> has not yet been upgraded) could only decode Opus and G.711, would it
> not have to tell the first browser about this?
>
> Are you perhaps assuming a capability exchange of some sort before any
> media can be set up?

The fact that a capability exchange or media signaling negotiation
exists does not mean that it must be based on a opaque blob which is
unmanageable at JS level. The JS app should be able to understand
*what* exactly it is sending in-the-wire, and for that purpose a
opaque blob is not a ellegant solution. Instead a JS Object based API
(like *any* WWW API) makes sense. And then the JS app can decide how
to encode/serialize/whatever such a media information in-the-wire (and
yes, it can be into a SDP, but a SDP created by the JS library because
the author chose it, while others can use whatever format or send the
information "splitted" into different requests or whatever.

Of couse the SDP O/A model is a valid model, and of course SIP is a
valid model (which carries the SDP exchange), but that is not the only
one. IMHO the IETF/W3C should not mandate like-SIP-models for every
future RTC applications running in the web.

Best regards.


--
Iñaki Baz Castillo
<ibc@aliax.net>