Re: [rtcweb] Adding previously "discarded" codecs in SDP renegotiation
Taylor Brandstetter <deadbeef@google.com> Tue, 29 March 2016 00:36 UTC
Return-Path: <deadbeef@google.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 893BF12D195 for <rtcweb@ietfa.amsl.com>; Mon, 28 Mar 2016 17:36:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.71
X-Spam-Level:
X-Spam-Status: No, score=-2.71 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ueYD-9lbbowM for <rtcweb@ietfa.amsl.com>; Mon, 28 Mar 2016 17:36:51 -0700 (PDT)
Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C268112D0AC for <rtcweb@ietf.org>; Mon, 28 Mar 2016 17:36:50 -0700 (PDT)
Received: by mail-yw0-x233.google.com with SMTP id h65so591668ywe.0 for <rtcweb@ietf.org>; Mon, 28 Mar 2016 17:36:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=zJCOefAnITO4ndzY/72aLDYJkQlzk6cRtsxQl4AnmH8=; b=fUH4+9YsOEgKCllCIwc3AImfAvua4YJps5oPbuAtsXyEx0c7u9a1iN3H0snl3on+h5 8uv61ePNOHk3aQ2m3svNQZPlDuBpUW9M0DAhxN6dEuYq16ROTIANorWXeMlWno9Natbl MAWlmLIpjfh0nfyV6J4sF2Q4I8z2X7BIJLwsLBCxI2AavY0Fziwq4jw0FqgaGzZHX8g7 gAAl8E91Gx6iJo7EXfSDKFS+cXW1eup7jMLIEaDc5JeTv3QAmKz+9mYMvRsarPhDD5JC FYEm6OA82YsqlzOgDrXPoVgT7JyLpjgHJeY7JzeBmXiP/36Y/xgAf1PoBXkos7VseXbX vXaQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=zJCOefAnITO4ndzY/72aLDYJkQlzk6cRtsxQl4AnmH8=; b=XuRRvh+rsudkGoAFJwAvH68nI4bmDkJpV1q5T4Oxv5GHCMtp5g4gvq/EghOaVByh1h EO/wCBVoJRwe8Ma2N/ZhaS6iGvin3uqe/9lsHlp61EIE9P6fBYj/XN+Jm+8G8VmAk+f4 Ztvh5E1Q5nR3+liAQB8QiUYbr2W9G3DbJQqIsKXGGkrdEwKsrFx4I3hlkEF9KhtstxUD FhxihXvxdvdfzgJ/uspMGBFYUJYqhbEdp7ZaDm7ZqNcX+auXNFrJaf3cPhXocH3OJXez 3fgYtJZOjjKuMoH/wi+LEjY0gzlzWZdqyY2C4xXfmVkwp1MhvvLt4eXhr/Vu6hAdodqR /s0g==
X-Gm-Message-State: AD7BkJKx4PEYiOBOFusWUfi69/cs0WpUBbXLFC4c3YtawcADF4eUUxZXodQqPBZDWrYhAQgmRbSCFjywUbsA+oPN
MIME-Version: 1.0
X-Received: by 10.129.95.9 with SMTP id t9mr14135195ywb.94.1459211809864; Mon, 28 Mar 2016 17:36:49 -0700 (PDT)
Received: by 10.129.42.196 with HTTP; Mon, 28 Mar 2016 17:36:49 -0700 (PDT)
In-Reply-To: <74244AD7-31A4-42DC-B0AB-5F24EE2C7599@iii.ca>
References: <CALiegfmxG-NFoQdQ0HZi80kB4J4_G0YnYXbCYxwz6TPEg8+ACA@mail.gmail.com> <CAK35n0YJ4AVow4z5Wz9eODUgn3XOkp5msKSY=BJg55YZz9CY5g@mail.gmail.com> <74244AD7-31A4-42DC-B0AB-5F24EE2C7599@iii.ca>
Date: Mon, 28 Mar 2016 17:36:49 -0700
Message-ID: <CAK35n0ZX_NqSYP-bWcivcFCy4bHCBFU=ir82AuOKeN11U84PAg@mail.gmail.com>
From: Taylor Brandstetter <deadbeef@google.com>
To: Cullen Jennings <fluffy@iii.ca>
Content-Type: multipart/alternative; boundary="001a1147e8c094ef17052f25395b"
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtcweb/CSQttztpzHpUL2SpM7vSiAXdvcs>
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Adding previously "discarded" codecs in SDP renegotiation
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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, 29 Mar 2016 00:36:54 -0000
> So I think Offer/Answer would allow that, but JSEP says not to do it in the normal re-offer case as the desire was not to have codecs change on reoffer By "normal re-offer case", do you mean when the re-offer is generated by the same peer that generated the initial offer? If so, is there a reason why this should work differently than an "abnormal" re-offer case (where the re-offer is generated by the peer that generated the initial answer)? > if the JS wanted to do redo the offer that way, if it removed the Track, then added the Track back, I suspect that JSEP would re-offer will full set of codecs. As the specs are currently written, removing and re-adding a track would create a new transceiver. So it would definitely have the full set of codecs. On Mon, Mar 28, 2016 at 5:23 PM, Cullen Jennings <fluffy@iii.ca> wrote: > > So I think Offer/Answer would allow that, but JSEP says not to do it in > the normal re-offer case as the desire was not to have codecs change on > reoffer, however, if the JS wanted to do redo the offer that way, if it > removed the Track, then added the Track back, I suspect that JSEP would > re-offer will full set of codecs. That sound about right ? > > > > On Mar 28, 2016, at 5:13 PM, Taylor Brandstetter <deadbeef@google.com> > wrote: > > > > This seems like a bit of a gray area. JSEP says that for subsequent > offers: > > > > o The m= line and corresponding "a=rtpmap" and "a=fmtp" lines MUST > > only include codecs present in the remote description. > > > > In this situation, the remote description does still contain H.264, so > it seems it would technically be valid to offer it. However, if Alice were > to send a reoffer, she could not offer H.264. And then Bob's remote > description wouldn't contain H.264, so he couldn't offer it even if he > wants to. > > > > I'm thinking this may be an oversight in the spec. I created an issue > for it: https://github.com/rtcweb-wg/jsep/issues/266 > > > > As for current implementations: Chrome will freely let you add > previously discarded codecs, and it even creates offers with discarded > codecs. Though this is currently considered a bug. I just created an issue > to track it: https://bugs.chromium.org/p/webrtc/issues/detail?id=5697 > > > > On Mon, Mar 28, 2016 at 2:25 PM, Iñaki Baz Castillo <ibc@aliax.net> > wrote: > > Hi, the scenario is the following: > > > > - Alice sends SDP offer to Bob by offering VP8 (PT 100) and H264 > > packetization-mode=1 (PT 101). > > > > - Bob answers with just VP8 (let's say it sets PT 110) in the m= line, > > regardless he also supports H264. > > > > At this time Alice must send VP8 (PT 110) to Bob, and Bob must send > > VP8 (PT 100) to Alice. Fine. > > > > Later Bob wants to change to H264, so he sends a SDP reoffer to Alice > > by just offering H264 packetization-mode=1 (PT 111). > > > > Assuming this is valid (re-enabling a previously discarded codec), > > Alice answers the reoffer with just H264 (PT 101). > > > > > > Is this valid? And a more pragmatic questions: should I assume that > > current WebRTC implementations would support this scenario? > > > > Thanks a lot. > > > > > > -- > > Iñaki Baz Castillo > > <ibc@aliax.net> > > > > _______________________________________________ > > rtcweb mailing list > > rtcweb@ietf.org > > https://www.ietf.org/mailman/listinfo/rtcweb > > > > _______________________________________________ > > rtcweb mailing list > > rtcweb@ietf.org > > https://www.ietf.org/mailman/listinfo/rtcweb > >
- [rtcweb] Adding previously "discarded" codecs in … Iñaki Baz Castillo
- Re: [rtcweb] Adding previously "discarded" codecs… Taylor Brandstetter
- Re: [rtcweb] Adding previously "discarded" codecs… Cullen Jennings
- Re: [rtcweb] Adding previously "discarded" codecs… Taylor Brandstetter
- Re: [rtcweb] Adding previously "discarded" codecs… Iñaki Baz Castillo
- Re: [rtcweb] Adding previously "discarded" codecs… Christer Holmberg
- Re: [rtcweb] Adding previously "discarded" codecs… Iñaki Baz Castillo