Re: [rtcweb] JSEP: codecs in answer: MUST vs. MAY

Iñaki Baz Castillo <ibc@aliax.net> Tue, 24 October 2017 21:15 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 E434A13F850 for <rtcweb@ietfa.amsl.com>; Tue, 24 Oct 2017 14:15:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=aliax-net.20150623.gappssmtp.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 NKtt78as7lg7 for <rtcweb@ietfa.amsl.com>; Tue, 24 Oct 2017 14:15:34 -0700 (PDT)
Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::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 C540413F84C for <rtcweb@ietf.org>; Tue, 24 Oct 2017 14:15:33 -0700 (PDT)
Received: by mail-wm0-x233.google.com with SMTP id r196so1640222wmf.2 for <rtcweb@ietf.org>; Tue, 24 Oct 2017 14:15:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aliax-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gPdFbKyBiC1YzjIbVSufZcYuOhQiVZuwdhSccRFPw3U=; b=nANDx9257qz84WfFA7ng1eFh6WNBXCtDog0RpPRbAOrH70iQHsoiVaVVOdEuKPwvO4 upb4tr6MYU+0j9CqBN25DhXR/MMgfa2zAwAHakLbGLojp5os4s7E3buL3M/WNQZh/ZM9 p+d8MAfSynco3/mmUrf7icxE8pR2q4s/fjNAeu0pyYEMVWt7QeBYXZqKvU4lqooaWwAp kfH9f7WAquZtT/ZYakFG1xmbXqML+cr5eUfey/mdLmygTtdgspnCRHnT7y2XddKWsX+U VqdsKodeybB3zopnJPM8QwQkWyb9NhjMT/b4pcUBeyPcNuxBqrblATo0ziCTyHBd+jSx 4WeA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gPdFbKyBiC1YzjIbVSufZcYuOhQiVZuwdhSccRFPw3U=; b=sLR9Asy+PSSkHfSaAgC1a5N3k2wY59zwceZCLjDCJhV2GrpIVQqyaYo4QOqAdPL5Zj NbkjYnQJYnTI01Gq4dkbZTbNk6wsXP7ZOs5EqWKi9PeJZy1zOq3603QdyxlD1ZmH2o63 tqKGkkJEpY1ACBJGAzXURMlv5hwT4VCJMc66WLxAUXU8lWq1r5UG8o8F3YO5PpMFMFIi 34eSrNEy73SQ+f19fthXp9FhSpYbVVlDFsPmA3e0L+yoE1VJy6cO5550qCaqxp2AlHi8 x+Zeh2mQUe3epkqrac7SiQFzKjN/abj2BReAmyaZxzhUV4KA5gqkuZ/8aySFTbG22CC1 N38g==
X-Gm-Message-State: AMCzsaXBFpf+EB4BF8mrGmdHqVDO9PX4ya0JVfDwwpoxQLUoL64uGpKL XhQjig9Cw0JVxvryDvDgU4Id8oRUvqNP3O+FcQFzdAc97yE=
X-Google-Smtp-Source: ABhQp+RlynvLG5qgOnlamvryvJ60Wj7qxRJpMN3mT92adVN3R498l0eQVY/FcAaisUsFVQOxyLF4C8mzHOg2kGIfDKg=
X-Received: by 10.80.149.75 with SMTP id v11mr21685427eda.284.1508879732112; Tue, 24 Oct 2017 14:15:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.80.214.6 with HTTP; Tue, 24 Oct 2017 14:15:11 -0700 (PDT)
In-Reply-To: <4CB5EF91-8CB2-433F-85E9-A86140CECC62@vidyo.com>
References: <4CB5EF91-8CB2-433F-85E9-A86140CECC62@vidyo.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Tue, 24 Oct 2017 23:15:11 +0200
Message-ID: <CALiegf=J1xKcLif81Lmk85p6YW9soJLsvDS_wyi1kPzxkXbqOA@mail.gmail.com>
To: Jonathan Lennox <jonathan@vidyo.com>
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/iXjV7lcn4zVAFFBAe0SRTVMV_Ag>
Subject: Re: [rtcweb] JSEP: codecs in answer: MUST vs. MAY
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.22
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, 24 Oct 2017 21:15:36 -0000

I thought that one of the reasons for adopting SDP in WebRTC was that
it allows rapid implementation.
Are we still defining how codecs are negotiated? Is not even that
properly defined in the SDP O/A spec?

On 24 October 2017 at 21:58, Jonathan Lennox <jonathan@vidyo.com> wrote:
> JSEP (section 5.3.1) seems to be inconsistent about how whether
> locally-supported codecs that weren’t listed in a remote offer MUST, or MAY,
> be included in an answer:
>
>    o  If codec preferences have been set for the associated transceiver,
>       media formats MUST be generated in the corresponding order,
>       regardless of what was offered, and MUST exclude any codecs not
>       present in the codec preferences.
>
>    o  Otherwise, the media formats on the m= line MUST be generated in
>       the same order as those offered in the current remote description,
>       excluding any currently unsupported formats.  Any currently
>       available media formats that are not present in the current remote
>       description MUST be added after all existing formats.
>
>    o  In either case, the media formats in the answer MUST include at
>       least one format that is present in the offer, but MAY include
>       formats that are locally supported but not present in the offer,
>       as mentioned in [RFC3264], Section 6.1.  If no common format
>       exists, the m= section is rejected as described above.
>
>
> The first two paragraphs certainly seem to indicate that these codecs MUST
> be included in the answer; however, the third paragraph suddenly weakens
> this to a MAY.
>
> Is the intent of the third paragraph simply to restate RFC 3264’s loose
> requirements, whereas the first two are JSEP’s more binding ones?  If so, I
> think this should be stated more clearly, otherwise the required behavior is
> unclear.
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>



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