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

Iñaki Baz Castillo <ibc@aliax.net> Tue, 10 July 2012 10:07 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 3FB1E11E808E for <rtcweb@ietfa.amsl.com>; Tue, 10 Jul 2012 03:07:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.65
X-Spam-Level:
X-Spam-Status: No, score=-2.65 tagged_above=-999 required=5 tests=[AWL=0.027, 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 A00ossT2I6yW for <rtcweb@ietfa.amsl.com>; Tue, 10 Jul 2012 03:07:11 -0700 (PDT)
Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by ietfa.amsl.com (Postfix) with ESMTP id E773C21F8710 for <rtcweb@ietf.org>; Tue, 10 Jul 2012 03:07:10 -0700 (PDT)
Received: by lbbgo11 with SMTP id go11so55542lbb.31 for <rtcweb@ietf.org>; Tue, 10 Jul 2012 03:07:37 -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=/NfPlJHrD7r8aSdt+U4NSUidJH8PqDPBnLIwzLJhXUA=; b=XDkB+iGAVqzUz6mwxUEipUkfcKn3PJKNpthPSPyQioCzk6X2kYCtXHVHkl6eslPPNc h5q4JeaThT02LnVOjL6WmDecTUT4xEWVOpjHFVuSqwKanhINqZrNJt605HAl7Sg+/6vH eQ+bFBlCVDnZ+T4A8qEQ1rAdg5d8uxtOsYSZ/eWxZ3jH55LhbYu7tkE4f9Zrl/+pLOZx gwbL2nAYHN/wYAYCcehED0sCS3hfll8KKtqY/Nhjziw59O6m0yH2KjkvZdNksQFLYvyO 3P/YQYGkq9ffitks0Js5H4CiirxoU+AKlqn8zM83lFcZUqTqwtYSXNoc5eofvYKWqK96 2GIw==
Received: by 10.112.27.226 with SMTP id w2mr20082872lbg.57.1341914857346; Tue, 10 Jul 2012 03:07:37 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.114.23.2 with HTTP; Tue, 10 Jul 2012 03:07:17 -0700 (PDT)
In-Reply-To: <CABkgnnUZWbLP1dG1NHqn_puY0NVQuDnNkGNz1Mo9MYXf4Y_d_Q@mail.gmail.com>
References: <CALiegfkKv8YBW1Lo0+bT0rBtheTsNde0+PTej+xZZmo7xPaYpA@mail.gmail.com> <CALiegf=KbUw9c81RWdTAiFGyd2ntwdaJ4BYsoGUduwE=JSbLLg@mail.gmail.com> <CABkgnnUZWbLP1dG1NHqn_puY0NVQuDnNkGNz1Mo9MYXf4Y_d_Q@mail.gmail.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Tue, 10 Jul 2012 12:07:17 +0200
Message-ID: <CALiegf=SwQ1PS1tGhSMa-4WMrf0Jwts80p8E5S-0QivKaz=6Yg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQnREVIIvx+4Ms4nE6v6RVrhFSy5EDM8S0mpiQ+4khKcxCd7zWmrxoISr3zEtttnppAxEoKt
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 10:07:12 -0000

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.

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