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

Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com> Mon, 01 July 2013 17:33 UTC

Return-Path: <stefan.lk.hakansson@ericsson.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 0F76621F99D3 for <rtcweb@ietfa.amsl.com>; Mon, 1 Jul 2013 10:33:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.064
X-Spam-Level:
X-Spam-Status: No, score=-4.064 tagged_above=-999 required=5 tests=[AWL=-1.765, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3]
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 7KNHj81BZL9s for <rtcweb@ietfa.amsl.com>; Mon, 1 Jul 2013 10:33:38 -0700 (PDT)
Received: from sesbmg20.ericsson.net (sesbmg20.ericsson.net [193.180.251.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5DBB111E80D7 for <rtcweb@ietf.org>; Mon, 1 Jul 2013 10:33:37 -0700 (PDT)
X-AuditID: c1b4fb38-b7f456d000002e83-68-51d1bd6de52b
Received: from ESESSHC021.ericsson.se (Unknown_Domain [153.88.253.125]) by sesbmg20.ericsson.net (Symantec Mail Security) with SMTP id 3E.26.11907.D6DB1D15; Mon, 1 Jul 2013 19:33:33 +0200 (CEST)
Received: from ESESSMB209.ericsson.se ([169.254.9.6]) by ESESSHC021.ericsson.se ([153.88.183.81]) with mapi id 14.02.0328.009; Mon, 1 Jul 2013 19:33:33 +0200
From: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Thread-Topic: [rtcweb] New Draft - WebRTC JS Object API Model
Thread-Index: AQHOcibV+w71mSCXSkiQxLiPakqfXQ==
Date: Mon, 01 Jul 2013 17:33:33 +0000
Message-ID: <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>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.16]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBLMWRmVeSWpSXmKPExsUyM+JvrW7u3ouBBi1nLCym77OxWPuvnd2i ca6dA7PHuYb37B47Z91l91iy5CdTAHMUl01Kak5mWWqRvl0CV0bn9bSCZ7IVh4/9YW5gbJfo YuTkkBAwkejomMgCYYtJXLi3nq2LkYtDSOAoo8Te3oWMEM5CRoklPzazg1SxCQRKbN23gA3E FhGwlLgx9yYziM0s4CEx7dZSVhBbWMBGou/DZ6YuRg6gGluJbW2sEOV6EnM+rwQbwyKgIrFs 7wd2kBJeAV+Jtgu5EKvusUi8ndANNpIR6KDvp9YwQYwXl7j1ZD4TxKECEkv2nGeGsEUlXj7+ xwphK0rsPNsOdY6exI2pU9ggbG2JZQtfg8V5BQQlTs58wjKBUXQWkrGzkLTMQtIyC0nLAkaW VYwcxanFSbnpRgabGIGxcXDLb4sdjJf/2hxilOZgURLn3aJ3JlBIID2xJDU7NbUgtSi+qDQn tfgQIxMHp1QDY0Fu1jn5jh3X7uQtvnXw9/l7l/8u5+OZvbFwhd/OUhazHULLPqld2bbANHxS gqlq7ZOSqOXCvC/LvjXrqr6wuB5XOk/6RNCm+tuK3NEzPmSJLXtz0ej2wbYMrQUOPW0TpVbw nlEzfnOSR3rhwrOqH0tSdLv1XThfLCms+S16bdP8Qzn29/es81diKc5INNRiLipOBAA+b+Nm WwIAAA==
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 17:33:43 -0000

On 2013-07-01 19:22, Iñaki Baz Castillo wrote:
> 2013/7/1 Ted Hardie <ted.ietf@gmail.com>:
>>> Ted, the media can be *perfectly* sent in-the-wire with any custom
>>> format the web developer builts (JSON, XML, plain SDP or whatever).
>>
>>
>> I'm sorry, I think I must misunderstand you.  You are planning to take media
>> from a source  and encode it using json, xml, or SDP and send that over the
>> wire?  Or you mean the media *signalling* can use json, xml, or SDP and go
>> over the wire?
>
> Of course, I mean "the media signaling". But that is not just about
> "in-the-wire". Current WebRTC specs mandate that the information unit
> exchanged between the JS app and the WebRTC stack must be a SDP blob.
>
> What I mean is:
>
> - The JS app uses the WebRTC API to retrieve a JS Object (or Objects)
> with transport and media info.
>
> - The JS app serializes such a information in any custom way defined
> by the website developer (this can be a JSON body, XML, SDP! or
> whatever).
>
> - The JS app sends the information to the remote peer.
>
> - The JS app of the remote peer decodes the information (since it is a
> JS app designed by the same domain/website) and extracts all the
> transport/media fields.
>
> - The JS app of the remote peer creates a local PC and makes calls to
> API methods of PC for passing those transport/media fields.
>
> - ...and remove O/A mandate.

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?

>
> But honestly, all of this is really well described and exposed in the draft:
>
> http://tools.ietf.org/html/draft-raymond-rtcweb-webrtc-js-obj-api-rationale-00
>
>
>
>
>
>>> The receiver JS app parses the information (i.e. converts from JSON to
>>> an Object), extracts the media/transport fields and pass them to the
>>> PeerConnection via API methods.
>>>
>>>
>>> It is really so hard? this is how WWW works (in contrast to how SIP
>>> works).
>>>
>>
>> As has been repeatedly mentioned, you have a peer communication here that
>> has to be implemented by the browser.  That means the downloaded javascript
>> application must tell a browser what transports it needs so that it can
>> create the appropriate connections.  If it is using RTP/UDP, it ends up
>> needing to tell the browser what enough detail to construct the RTP/UPD
>> streams.  What payload format, for example, is needed.  As I said before,
>> that means that having no standard format across the API between the JS
>> application and the browser has very poor scaling characteristics.  You
>> might replace SDP as the interface between them, but not specifying anything
>> there doesn't seem to work, at least in my personal opinion.
>
> I invite you to read the draft which describes how your concerns can
> be perfectly accomplished without mandating SDP or any other format:
>
> http://tools.ietf.org/html/draft-raymond-rtcweb-webrtc-js-obj-api-rationale-00
>
>
>
> Best regards.
>
>
> --
> Iñaki Baz Castillo
> <ibc@aliax.net>
>