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> Fri, 06 July 2012 07:33 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 A779521F8705 for <rtcweb@ietfa.amsl.com>; Fri, 6 Jul 2012 00:33:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.647
X-Spam-Level:
X-Spam-Status: No, score=-2.647 tagged_above=-999 required=5 tests=[AWL=0.030, 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 MnYG+MC2K9mD for <rtcweb@ietfa.amsl.com>; Fri, 6 Jul 2012 00:33:28 -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 CC8E221F8702 for <rtcweb@ietf.org>; Fri, 6 Jul 2012 00:33:27 -0700 (PDT)
Received: by lbbgo11 with SMTP id go11so14065226lbb.31 for <rtcweb@ietf.org>; Fri, 06 Jul 2012 00:33:42 -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 :content-type:content-transfer-encoding:x-gm-message-state; bh=Sk0XDsIN6pQVrEKW1R1J0s8obj6IWsZkIpKQkyA2k9k=; b=imgyCaPxaFiPN9suesa5RZyYfMwyiPa0rZ7Sj8LrQwczSX36/KN/4wC/MfemLD0ffO Ge1niAvBiZDDTwXyJ/7KZblSeXH6nYh5upL9H0b2ZM9ltqrEaEqFWCuWyKCcD1Pb3WVX mmm8hyVJ1sX2DZxb+OZaLTNCU+TusmUme8IKcVdNLcJgPBU2N9Beu0mq7KLahs0adTJB sf5eKGqZ4bJasVZadFOYH3rYtKPmBLAWyLXLbvSgIOmp9ql+OrLfOoxs3QUq/icJtprQ qG9LO5x6Rq3wB6TvsyNeafCh0pmRMfUwedX11c1HaMMLQ9o+raRaJ8E2wfGCRZdvLExy zv5g==
Received: by 10.152.144.103 with SMTP id sl7mr14256601lab.37.1341560022637; Fri, 06 Jul 2012 00:33:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.114.23.2 with HTTP; Fri, 6 Jul 2012 00:33:22 -0700 (PDT)
In-Reply-To: <CALiegfkKv8YBW1Lo0+bT0rBtheTsNde0+PTej+xZZmo7xPaYpA@mail.gmail.com>
References: <CALiegfkKv8YBW1Lo0+bT0rBtheTsNde0+PTej+xZZmo7xPaYpA@mail.gmail.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Fri, 06 Jul 2012 09:33:22 +0200
Message-ID: <CALiegf=KbUw9c81RWdTAiFGyd2ntwdaJ4BYsoGUduwE=JSbLLg@mail.gmail.com>
To: rtcweb@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQmd1JtyNq1P6aityD+z9FgIGKHhltBPIiA4I66D5EoqZxLZhcP51ZzE4TD2PSjd2fhFgDPk
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: Fri, 06 Jul 2012 07:33:28 -0000

Hi, I would really appreciate some explanation about this subject.
Basically the aim of my question is to imitate the behavior of
existing chat+audio+video clients in which the session is initially
started with just audio, and video is added later (by asking for user
consent).

I hope that raw parsing of the received SDP is not needed for achieving this :)

Regards.


2012/7/4 Iñaki Baz Castillo <ibc@aliax.net>:
> Hi, let's assume I have an established audio session. Later the remote
> sends me a new SDP offer (let's say a SIP re-INVITE) and I want to
> analyze what is new in the new SDP (in order to ask the user for
> consent). So for example when the new SDP arrives I need to know
> whether it contains audio and video or whatever.
>
> With the current JSEP API I see no way. The only I can do with the new
> received SDP is:
>
>   pc.setRemoteDescription(SDP_OFFER, REMOTE_SDP_TEXT)
>
> but this would alter my multimedia session before I can ask my user
> for consent. Do I miss something?
>
> And I would also like to know whether the received SDP contains
> dissabled streams (i.e. a video stream with port 0) before accepting
> it. Basically I want a mechanism for getting a diff between the
> existing remote SDP and the new received one.
>
> --
> Iñaki Baz Castillo
> <ibc@aliax.net>



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