Re: [rtcweb] How to get a diff between the remote SDP in an established session and a new received SDP offer

Eric Rescorla <ekr@rtfm.com> Tue, 10 July 2012 12:56 UTC

Return-Path: <ekr@rtfm.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 EBD4921F86CA for <rtcweb@ietfa.amsl.com>; Tue, 10 Jul 2012 05:56:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.635
X-Spam-Level:
X-Spam-Status: No, score=-102.635 tagged_above=-999 required=5 tests=[AWL=0.042, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, 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 I6mtUIuP17X9 for <rtcweb@ietfa.amsl.com>; Tue, 10 Jul 2012 05:56:48 -0700 (PDT)
Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by ietfa.amsl.com (Postfix) with ESMTP id 0971621F86C7 for <rtcweb@ietf.org>; Tue, 10 Jul 2012 05:56:47 -0700 (PDT)
Received: by vcqp1 with SMTP id p1so8671208vcq.31 for <rtcweb@ietf.org>; Tue, 10 Jul 2012 05:57:15 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding :x-gm-message-state; bh=97MVO/ZlpM5EARXq/aTWOmX0ghbz3EZrn3aIKqFq1+k=; b=oiTMiZf6H+Hj4WVKorkYR9uKBcXOh9y8H+8Bu1f7RDVE35ejSRgeEGWD9w8P53nlTF Z3odWNOQYJMsrDw+TKFq0UI0z8C2fhEP0I9HyK1vgU7/lJ6tbY4JNnL5nuiPAImMWKPu L5Lv54Yv8C90LLF14bXPC3IGIgqiGAQ50dGB/IF8iZnO+MBAOM/YaxFWGMb7ETlvTXlj rsGvX/+VYZdNvkZTYFyXSi5M54V1WH7pRDyXFAjF8xKZjrQM0GFdUGnB/Hrc86tqZ/Sn DbBw+rKdIejKpaigcq4VXd4tv/SCvisCd9tcvx5l15fJM/1tscY/D/apjjDO9EBfR9E6 bbqg==
Received: by 10.52.99.227 with SMTP id et3mr17438675vdb.110.1341925035217; Tue, 10 Jul 2012 05:57:15 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.35.209 with HTTP; Tue, 10 Jul 2012 05:56:35 -0700 (PDT)
X-Originating-IP: [74.95.2.169]
In-Reply-To: <CALiegf=SwQ1PS1tGhSMa-4WMrf0Jwts80p8E5S-0QivKaz=6Yg@mail.gmail.com>
References: <CALiegfkKv8YBW1Lo0+bT0rBtheTsNde0+PTej+xZZmo7xPaYpA@mail.gmail.com> <CALiegf=KbUw9c81RWdTAiFGyd2ntwdaJ4BYsoGUduwE=JSbLLg@mail.gmail.com> <CABkgnnUZWbLP1dG1NHqn_puY0NVQuDnNkGNz1Mo9MYXf4Y_d_Q@mail.gmail.com> <CALiegf=SwQ1PS1tGhSMa-4WMrf0Jwts80p8E5S-0QivKaz=6Yg@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Tue, 10 Jul 2012 05:56:35 -0700
Message-ID: <CABcZeBMBRKQcve2RV7JU46jLB5=4+MGHaGk4dsLmGFBHqOa5Yg@mail.gmail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQk76zPaouvJJU2GJY1U34bSgxCKy1/HSoyhQ+XyZlGHDLOEb7pma1XgFBmKqY/rdM2nSG8l
Cc: rtcweb@ietf.org
Subject: Re: [rtcweb] How to get a diff between the remote SDP in an established session and a new received SDP offer
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: Tue, 10 Jul 2012 12:56:49 -0000

On Tue, Jul 10, 2012 at 3:07 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:
> 2012/7/6 Martin Thomson <martin.thomson@gmail.com>:
>> On 6 July 2012 00:33, Iñaki Baz Castillo <ibc@aliax.net> wrote:
>>> I hope that raw parsing of the received SDP is not needed for achieving this :)
>>
>> I'm surprised that you think that.
>>
>> I believe that the subject is one of the open issues, though I believe
>> that the current discussion was heading toward the conclusion that
>> calling set<X>Description() on a PeerConnection was the blessed method
>> for determining what streams are present in an offer or answer.
>>
>> Therefore, the process is something like...
>>
>> # Take existing session, look at the attached streams (and their tracks).
>> # Take new offer, create new PeerConnection, attach the same local
>> streams, call pc.setRemoteDescription(OFFER, sdpOffer), examine the
>> resulting attached streams (and their tracks).
>> # Discard the new PeerConnection.
>>
>> Of course, this is highly likely to fail because the resources
>> necessary to create and configure the second PeerConnection are likely
>> taken by the first.  So your best bet is to scrounge through the SDP.
>> But SDP is awesome, so it's OK.
>
> I strongly hope WebRTC API will provide something much better for a
> simple and usual task like adding video to an audio session with
> previous user consent.

Yes. PeerConnection.AddStream()