Re: [rtcweb] JSEPbis: Questions about send-only/recv-only codecs and Section 4.2.6

Justin Uberti <justin@fixie.ai> Thu, 21 March 2024 05:39 UTC

Return-Path: <justin@fixie.ai>
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 57695C151525 for <rtcweb@ietfa.amsl.com>; Wed, 20 Mar 2024 22:39:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fixie.ai
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SKZZURpRiNgc for <rtcweb@ietfa.amsl.com>; Wed, 20 Mar 2024 22:39:40 -0700 (PDT)
Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 75283C15108E for <rtcweb@ietf.org>; Wed, 20 Mar 2024 22:39:39 -0700 (PDT)
Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-dcbd1d4904dso567006276.3 for <rtcweb@ietf.org>; Wed, 20 Mar 2024 22:39:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fixie.ai; s=google; t=1710999579; x=1711604379; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fV1QYnXRKSScIxvTIv0ULQweNA384Us7/Q0Esss5CyE=; b=IGjxKivBiRZSsfr3INN9IsrUy4FeoGHzMziX6Yh31J1fAuX990trAepV+X3JFVv32f 614UUOASkHB/klsaZ3FTfFENub9U2jgmV2CMhH5Xmh3jr2lEzwPLn40zGSj5jOe0+CnQ kptGFSy/jbx/je9VksU7bLIBopS+rt9m+Nqrdj5jJg7SMCHKqpwDFRJTW8rhojyJCN6n XhE1sjMpySAACeovxkHXoirsIUvULWlh9SibSIHO9TyASVS10lb7YmEN65zcz3Tqsy++ HRtgXcIvfS7V/9RsfjCA7VToI3xTK7hC588m8afTGCEho6GmbQWqLNhLKQBesrobIgHO sGHg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710999579; x=1711604379; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fV1QYnXRKSScIxvTIv0ULQweNA384Us7/Q0Esss5CyE=; b=ptWLsCbNVG1MNm0Vb9VlcP5/QogUlvWZgvtUGqxbm1uSDotDl+A/ww/xJPHm0BLNrP p1XL1xUxJeocIVcDegVMstDLJdyXTQSnk/qSN9wEV0xZTqUsN7ZjEwH2d0RmzqDk4dZ3 HVgoF2F/p3CVeP4dWBUsEVq7TMiElqcotF0/h+71DrkpmAy6gkin67uv38Vf4u/7v2k4 axU0UtT7nISeeEvjskjj1+jMLzfcz8RZtNdbGgokepTbXYlRadLOcn1zRHc6TFm8o5JK 3yw8VcjHS0rMJTVxK9njEt0vqqY6UOrvG+T0OIz0sA2cuabtfsrKqF0ZiA0fb/yNNCUm sWhQ==
X-Forwarded-Encrypted: i=1; AJvYcCWeo9qRuqT8M6u1I6zcp198nQV9pZThJiXFDK1MrwnWZ8tLDuvMsTmCzx6n7DHQwTdeTTYDbJ8jhXfkmpi/E/I=
X-Gm-Message-State: AOJu0Yz4IMI8jquoknGxY0phxaz2zyvFwUjzdv+NdqPZ3kdzAFTVox+5 PfUSU2mzdEI0yCE9rXJ1lLfXdJNNV+O7kELYPvKYqNGPYgTN7GU3jy4f8LtNsjRI6aXZn+OnJON bdUtuKqIuTPTcH2tXHQQTHHgiNp7jg12Q5gROtCMzbPq97ajx18k=
X-Google-Smtp-Source: AGHT+IGMH+VDWxt0Yh6T5xAfrx+yE7hujLzjxTsx3xp/eoqCc8YdIbOHEfKSd5kVIZeJmh0cWzoPoR+SelScAMK/vrQ=
X-Received: by 2002:a25:c5c9:0:b0:dcf:3aa6:7334 with SMTP id v192-20020a25c5c9000000b00dcf3aa67334mr3758098ybe.7.1710999578691; Wed, 20 Mar 2024 22:39:38 -0700 (PDT)
MIME-Version: 1.0
References: <AS8PR07MB80698924869ABC57A85B741C93332@AS8PR07MB8069.eurprd07.prod.outlook.com> <7372DBF4-492F-47FC-9C7C-C1C55FAD282E@gmail.com> <CAD5OKxtp0RL4GKKnODgLCz6hRPszFzF0pWRj_Q5iAb+92rRwbA@mail.gmail.com>
In-Reply-To: <CAD5OKxtp0RL4GKKnODgLCz6hRPszFzF0pWRj_Q5iAb+92rRwbA@mail.gmail.com>
From: Justin Uberti <justin@fixie.ai>
Date: Wed, 20 Mar 2024 22:39:27 -0700
Message-ID: <CAPn_nMPdZijTw6ZJivVy6e8tgJrT0W302CtmxTgODxu_0umEPA@mail.gmail.com>
To: Roman Shpount <roman@telurix.com>
Cc: Bernard Aboba <bernard.aboba@gmail.com>, Christer Holmberg <christer.holmberg@ericsson.com>, RTCWeb IETF <rtcweb@ietf.org>, Henrik Boström <hbos@google.com>, Harald Alvestrand <hta@google.com>
Content-Type: multipart/alternative; boundary="00000000000019695b06142522cc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/2bviuNag-gBDgPfXdFkweDBGwvU>
Subject: Re: [rtcweb] JSEPbis: Questions about send-only/recv-only codecs and Section 4.2.6
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.39
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: Thu, 21 Mar 2024 05:39:44 -0000

I agree with Roman.

On Wed, Mar 20, 2024 at 12:59 PM Roman Shpount <roman@telurix.com> wrote:

> Bernard,
>
> sCP affects which codecs can be sent on both send-only and sendrecv
> m-lines. Specifically, it proposes which codecs are allowed and their
> relative preference to the answering party. The answering party decides
> which codecs should be left in the list based on its preferences and
> supported codecs. So, during the offer, it controls what is being offered
> (which does not guarantee that it is what is being used), and the answering
> party decides. The m=line direction is irrelevant.
> _____________
> Roman Shpount
>
>
> On Wed, Mar 20, 2024 at 1:09 PM Bernard Aboba <bernard.aboba@gmail.com>
> wrote:
>
>> The problem is that for a send-only m-line, sCP does affect what codecs
>> can be sent.
>>
>> On Mar 20, 2024, at 02:46, Christer Holmberg <christer.holmberg=
>> 40ericsson.com@dmarc.ietf.org> wrote:
>>
>> 
>>
>> Hi,
>>
>>
>>
>> In general, I don’t think the spec should say whether something affects
>> an implementation or not. How do we know what affects what in an
>> implementation?
>>
>>
>>
>> If we want to clarify something, we could say something like “sCP is not
>> used to indicate which codec an implementation shall send”.
>>
>>
>>
>> Also, maybe the statement that sCP only affects what an implementation
>> wants to receive should be in the first sentence of the section? Now the
>> sentence only talks about “codec preference”, which I assume can cause
>> confusion.
>>
>>
>>
>> Finally, if there is text somewhere that DOES define how the
>> implementation shall decide what codec to send, there could be a reference.
>>
>>
>>
>> Regards,
>>
>>
>>
>> Christer
>>
>>
>>
>> *From:* rtcweb <rtcweb-bounces@ietf.org> *On Behalf Of *Justin Uberti
>> *Sent:* Wednesday, 20 March 2024 0.32
>> *To:* Murray S. Kucherawy <superuser@gmail.com>
>> *Cc:* Harald Alvestrand <hta@google.com>; RTCWeb IETF <rtcweb@ietf.org>;
>> Henrik Boström <hbos@google.com>
>> *Subject:* Re: [rtcweb] JSEPbis: Questions about send-only/recv-only
>> codecs and Section 4.2.6
>>
>>
>>
>> Some people who received this message don't often get email from
>> justin=40fixie.ai@dmarc.ietf.org. Learn why this is important
>> <https://aka.ms/LearnAboutSenderIdentification>
>>
>> I don't think any changes are needed in RFC8829bis, I believe the text in
>> S 4.2.6 is sufficient.
>>
>>
>>
>> If necessary though we could expound on the sentence in 4.2.6 that says
>> "Note that setCodecPreferences does not directly affect
>>    which codec the implementation decides to send" to make the intent
>> clearer.
>>
>>
>>
>> On Mon, Mar 18, 2024 at 4:54 PM Murray S. Kucherawy <superuser@gmail.com>
>> wrote:
>>
>> On Mon, Mar 4, 2024 at 3:57 PM Justin Uberti <justin=
>> 40fixie.ai@dmarc.ietf.org> wrote:
>>
>> The idea behind the text in red is an explicit callout to the fact that
>> the implementation may decide to use other mechanisms (e.g.,
>> RtcRtpSender.setParameters, CPU or bandwidth limitations, etc) to decide
>> exactly what should be sent over the wire.
>>
>>
>>
>> Also, this API is intended to directly influence signaling, i.e., the set
>> of codecs that are offered. It is not intended to directly control
>> RtpSender settings.
>>
>>
>>
>> I agree with the point that the operation here may seem a bit weird for a
>> sendonly m= line. That said, I think it is entirely consistent with RFC
>> 3264 S 5.1, where a) what is offered is primarily intended as a guide for
>> what the answerer will actually send and b) the answerer may choose to send
>> whatever it wants as long as it uses a format from the offer.
>>
>>
>>
>> I think keeping sCP focused on what goes into the actual offer will make
>> it easier to reason about this API.
>>
>>
>>
>> Are there any required changes to RFC8829bis, which is in AUTH48?
>>
>>
>>
>> -MSK
>>
>> _______________________________________________
>> 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
>>
>