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

Bernard Aboba <bernard.aboba@gmail.com> Sat, 02 March 2024 01:00 UTC

Return-Path: <bernard.aboba@gmail.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 DA216C14F69C for <rtcweb@ietfa.amsl.com>; Fri, 1 Mar 2024 17:00:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.107
X-Spam-Level:
X-Spam-Status: No, score=-7.107 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 JDiCiVYzx6f7 for <rtcweb@ietfa.amsl.com>; Fri, 1 Mar 2024 17:00:17 -0800 (PST)
Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (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 373D2C14F68C for <rtcweb@ietf.org>; Fri, 1 Mar 2024 17:00:17 -0800 (PST)
Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-299354e5f01so3033925a91.1 for <rtcweb@ietf.org>; Fri, 01 Mar 2024 17:00:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709341216; x=1709946016; darn=ietf.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=grtL4K3G+Xs29F1ZlI6xLGK8T2b2NKZlG8RWlAsM+yM=; b=TPlUI/TNHm7UYpf/biHriZ2qD3m5MpNlaCBKXo1tp0OFudOEBuiVBJzDhS2uaI506b J44P7248bfZ4X7WzkZm8/aI/FU7pR3Rqf9WV7qiw1lp1uGZNIRr2wnpr+8FlKD6n7cwr 9+e+EZ5GuBQrib1qLR7bdXWwdhhbYl9cZiM4jH3Fw+r40bWj2u9/k1JYsUOu0k+I/94I k7ivyaVV6jAoyrd5QNJmyHnzNptFLaPqMAtn164vfqlWVCDM+tkYt/HkBD6ZpE0ArjqB w7i3f9UsWcXc24/AmUDbguxUtzYrXdBJ2wm2UG8mHQ3mH0Xpvz5ad7eyH7HerDpa13RT R30g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709341216; x=1709946016; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=grtL4K3G+Xs29F1ZlI6xLGK8T2b2NKZlG8RWlAsM+yM=; b=O7r4QL0tuicWaNR715jo6r7fLsYDRFl2bhJDn1e9ff6vrz79Re/M0eAnQ6JPxRCoo7 tSIKT7k1Tbs4u6OXt5xNlSoIOMV8sEX/4xU5ecBa8KkK/JUFJ0oLIr0KwxDxRIUH1N9d h3coJEU3lpENgmmmo2GhYtpr8olimRbZhLUa8RCr8IddPOksnKBDp6poxATNy4Vv1E4g kKVRGuHSC6L0KSdJsPSjDSVR6tV57JfuRtKZoKppdCFJgIUKvXupZMRk1M8/yn3AwI4g d3w4s4sJxY3I91cYplb0x6AUBoENfWCthnpUyuLq/WIgqH+K04pM2Y3+N3uIdX8f46Tv /lKw==
X-Gm-Message-State: AOJu0YwaN4iEaWRJoGMHgZdnbqWh1tirWvNV/2ZOyfi9w9TlX55j4N9m AznxEJllBCHRBSf3iM9fHG6ivUjPSW8xTg6SSvBux4JUaBoQKrHPl+2d84f/EP0vb4/EcLmPeKh jKJnX2ypL9QkzoquRLBrGq119YHvMHtwrQWK1Fg==
X-Google-Smtp-Source: AGHT+IELAthLuZNHVdEEe6skt6ArtHMZCrpJS/9/I5ze5qXPZNzs2D9t9BbiPk2GdW9GTjCsxtvdx5HpUDEOvLNeSDQ=
X-Received: by 2002:a17:90a:ce01:b0:29a:90ef:66f4 with SMTP id f1-20020a17090ace0100b0029a90ef66f4mr5162873pju.17.1709341214990; Fri, 01 Mar 2024 17:00:14 -0800 (PST)
MIME-Version: 1.0
From: Bernard Aboba <bernard.aboba@gmail.com>
Date: Fri, 01 Mar 2024 17:00:04 -0800
Message-ID: <CAOW+2dud=K0TuQ5s-MKgmnuvxR-DebFFhquigUbsiKQB3RjdNw@mail.gmail.com>
To: RTCWeb IETF <rtcweb@ietf.org>
Cc: "hta@google.com" <hta@google.com>, Philipp Hancke <philipp.hancke@gmail.com>, Henrik Boström <hbos@google.com>, Christer Holmberg <christer.holmberg@ericsson.com>
Content-Type: multipart/alternative; boundary="000000000000eb6c470612a30365"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/XYDd1MBqH6k3ibcZ7hWgwoELSjo>
Subject: [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: Sat, 02 Mar 2024 01:00:17 -0000

The purpose of this email is to alert the RTCWEB WG to a potential issue
that has been pointed out in JSEPbis Section 4.2.6, with respect to the
operation of setCodecPreferences().

Currently, support for the H.265 codec in WebRTC is underway in multiple
browsers, including Chrome, Firefox and Safari.  Safari Tech Preview 189
has enabled by default support for both sending and receiving H.265, while
Chrome and Firefox are working on enabling reception of H.265.  This has
lead to discussion of potential interoperability issues between browsers
that can Offer H.265 on a send/recv m-line, and browsers that can only
Offer H.265 on a recv-only m-line.

At the AVTCORE WG Virtual Interim on February 13, 2024, we discussed Issue
22 relating to the handling of send-only and recv-only codecs:
https://github.com/aboba/hevc-webrtc/issues/22

draft-uberti-rtcweb-rfc8829bis Section 4.2.6 says:

"The setCodecPreferences method sets the codec preferences of a
transceiver, which in turn affect the presence and order of codecs of the
associated "m=" section on future calls to createOffer and createAnswer.  *Note
that setCodecPreferences does not directly affect which codec the
implementation decides to send. It only affects which codecs the
implementation indicates that it prefers to receive, via the offer or
answer.*  Even when a codec is excluded by setCodecPreferences, it still
may be used to send until the next offer/answer exchange discards it."

Questions arose relating to the (red) text in italics, because it does not
appear to be consistent with the definition of setCodecPreferences() within
the WebRTC-PC API specification. In particular, while the text may be
correct with respect to operation of sCP() on a send/recv or recv-only
m-line, for a send-only m-line it seems odd to insist that sCP() will only
affect receive preferences, not send preferences.

Currently within the W3C WEBRTC WG, several issues have been opened
relating to the behavior of setCodecPreferences():

   -

   w3c/webrtc-pc#2936 <https://github.com/w3c/webrtc-pc/issues/2936>
   -

   w3c/webrtc-pc#2933 <https://github.com/w3c/webrtc-pc/issues/2933>
   -

   w3c/webrtc-pc#2935 <https://github.com/w3c/webrtc-pc/pull/2935>
   -

   w3c/webrtc-pc/#2888 <https://github.com/w3c/webrtc-pc/issues/2888>