Re: [rtcweb] JSEP: codecs in answer: ordering (was codecs in answer: MUST vs. MAY)

Christer Holmberg <christer.holmberg@ericsson.com> Tue, 31 October 2017 09:37 UTC

Return-Path: <christer.holmberg@ericsson.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 3753413F70E for <rtcweb@ietfa.amsl.com>; Tue, 31 Oct 2017 02:37:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 uBsV2VjHPNEP for <rtcweb@ietfa.amsl.com>; Tue, 31 Oct 2017 02:37:55 -0700 (PDT)
Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 84E2113F70D for <rtcweb@ietf.org>; Tue, 31 Oct 2017 02:37:54 -0700 (PDT)
X-AuditID: c1b4fb30-ef1ff70000001b7f-55-59f844708b31
Received: from ESESSHC013.ericsson.se (Unknown_Domain [153.88.183.57]) by sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id F4.E0.07039.07448F95; Tue, 31 Oct 2017 10:37:52 +0100 (CET)
Received: from ESESSMB109.ericsson.se ([169.254.9.84]) by ESESSHC013.ericsson.se ([153.88.183.57]) with mapi id 14.03.0352.000; Tue, 31 Oct 2017 10:37:51 +0100
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Harald Alvestrand <harald@alvestrand.no>, Jonathan Lennox <jonathan@vidyo.com>, Justin Uberti <juberti@google.com>
CC: "rtcweb@ietf.org" <rtcweb@ietf.org>
Thread-Topic: [rtcweb] JSEP: codecs in answer: ordering (was codecs in answer: MUST vs. MAY)
Thread-Index: AQHTT17s8rvlJFkOIUaE/XLZ8XLAw6L9gNIAgAA6TwA=
Date: Tue, 31 Oct 2017 09:37:51 +0000
Message-ID: <D61E118B.25136%christer.holmberg@ericsson.com>
References: <4CB5EF91-8CB2-433F-85E9-A86140CECC62@vidyo.com> <CA+9kkMDJEggHar5JbBb9GaNMBsZjgvO0F2VN5UVObv-3VTzE4w@mail.gmail.com> <CAOJ7v-2FEpidRsFf3Km5XjW5Jj7gXC2h9Pcy_GWOqb_P7jTHQw@mail.gmail.com> <2CFCA859-B941-4AFF-B80A-792509EED6F5@vidyo.com> <7CA6CF4C-6A92-4198-B2E6-10FB5EC6EA5D@vidyo.com> <4bf1b168-0830-f317-be74-f1cab95c8b47@alvestrand.no>
In-Reply-To: <4bf1b168-0830-f317-be74-f1cab95c8b47@alvestrand.no>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.7.7.170905
x-originating-ip: [153.88.183.19]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <BD1E85947E555949A3E79669E2C571CF@ericsson.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsUyM2K7pW6By49Ig3U/DCyO9XWxWexffJ7Z YutUIYu1/9rZHVg8rky4wuqxYFOpx5IlP5k82p7dYQ9gieKySUnNySxLLdK3S+DKuL5iBVPB L/6KBSsSGhiX8nQxcnJICJhIbDq1mrmLkYtDSOAwo0TjjGNMEM5iRon1h3axdjFycLAJWEh0 /9MGaRARqJA4tuwpM4jNLKAucWfxOXYQW1ggVmLe4bfMIOUiAnESz28zQpRbSTQ9nQBWwiKg KtHUehvM5hWwlrh4eCEjxKrnTBK7p79hBUlwCjhKPHjzngnEZhQQk/h+ag0TxC5xiVtP5jNB HC0gsWTPeWYIW1Ti5eN/YL2iAnoSG05ALJAQUJRof9rACNGrJ3Fj6hQ2CNta4k/jRKiZ2hLL Fr5mhjhIUOLkzCcsExjFZyFZNwtJ+ywk7bOQtM9C0r6AkXUVo2hxanFSbrqRkV5qUWZycXF+ nl5easkmRmBEHtzy22AH48vnjocYBTgYlXh4tSx+RAqxJpYVV+YeYpTgYFYS4RX6+D1SiDcl sbIqtSg/vqg0J7X4EKM0B4uSOK/jvgsRQgLpiSWp2ampBalFMFkmDk6pBsZt6Qtc2ZRybylM XrWGVdG+4mvHHn613NJ3OvXKmiezItJXrvZULV2YcMh9cYrBIyUP8y+GbW2bO6ZZqGU9vKoh O93tZoC9WKq/0TLbzDPX24NkAo9aPekofnF475Hm8gmeTD+Mj/ZYzWZovOyyNOyVu448byKP 2pGk0ycjRV/nbAz7/qGyQomlOCPRUIu5qDgRAObbetzEAgAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/vZ7df5Jes_PFx0z3lOPj4GKpnzk>
Subject: Re: [rtcweb] JSEP: codecs in answer: ordering (was 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, 31 Oct 2017 09:37:56 -0000

Hi,

>>Another question about JSEP¹s codec answer rules.
>> 
>> The spec currently says:
>>>>
>>>>            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.
>>>>
>>>>
>>>>     This is what you do if codec preferences are not set (keep the
>>>>     order, add any new ones to the end)
>> 
>> Why are remotely-unsupported codecs added at the end of the list, rather
>> than just listing all locally-supported codecs in the browser¹s
>> preference order?
>
>I don't read it like that.
>
>The answer consists of:
>
>- The offer's listed codecs that are also supported by the answerer,
>possibly rearranged according to codec preference
>- The answerer's supported codecs that were not listed in the offer.
>
>These aren't "remotely-unsupported", they are unlisted by the offerer.
>
>If they're really not supported by the offerer, adding them will have no
>effect.
>
>If they're supported by the offerer but the offerer chose not to list
>them (might happen for instance if one is an inferior mode of a
>supported codec, which the offerer did not think was worth mentioning),
>listing them before listed codecs would be overriding a strongly stated
>preference by the offerer.
>
>I like the current logic.

A few things to keep in mind, if adding codec X in the answer, when X was
not in the offer:

1) The answerer needs to be prepared to receive media using codec X, but
the answerer cannot send media using codec X.
2) If the offerer does support X (even if it did not include it in the
offer), the offerer cannot use it if using it would require providing
codec related SEND parameters.

Regards,

Christer