Re: [rtcweb] JSEP question: How to set up simulcast for server-originated calls?

Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> Tue, 06 November 2018 00:59 UTC

Return-Path: <sergio.garcia.murillo@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 989A9126DBF for <rtcweb@ietfa.amsl.com>; Mon, 5 Nov 2018 16:59:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] 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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GP9BQwExqhHF for <rtcweb@ietfa.amsl.com>; Mon, 5 Nov 2018 16:59:38 -0800 (PST)
Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 040731293FB for <rtcweb@ietf.org>; Mon, 5 Nov 2018 16:59:38 -0800 (PST)
Received: by mail-wm1-x336.google.com with SMTP id p2-v6so9790096wmc.2 for <rtcweb@ietf.org>; Mon, 05 Nov 2018 16:59:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=lWhVVRtxdLx9CBRQlhPwelKdt6NGFyvlUY+YPkU4vSk=; b=gR1iJKQiUOX8QcG9zTezyYsqD8IJHMIv+oBwhOQXtfheW3DQe5QN/DJBAonkotmp/e vAu3XXjHrVBDINMJ7+gqtwUJqJ2YHOJWY4OfL3Ux6MB64F2FNsCkjYzNZkhaFsUWSdnI tNtp5WrYvu2pq85PWTs9ueaZU64KGZ4sk6Hrhzog7AjtUW+3nc2ot8Ta7VFp7ODGNR2l UB2i9kzsspVTuAAGWSFehVw2FfBmTtarVgnMINqS2glwqpQwqD+psvZA4qKR2SKbfUqA eCW6l4kHZYe+SKqnNst55RxDHLU8+w0m1YB3cldVWrTuOikCEOU8f6vO5kOHNx2qKZ9R 4ECQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=lWhVVRtxdLx9CBRQlhPwelKdt6NGFyvlUY+YPkU4vSk=; b=PbF0PlIs24n3uPV7TrX+yy4VYNWzOfnUoJyAvafWCOSjMlb4hz5559UCJa2+/tJ6Os OP/Hzg9FmD8fpH/nbRNgbNonTg6OeueimVCioyiTDeZ3+c7fbcAiHVmuA7gZ5ZhDE6if 85B0nxqMUy/DxewgUamkekWGhQrLrGII21ola47FzVF7yuKNIfHIZq4HuN1hyAlRYDVn 8Buw0r7Q6BmHOPBPK+vVxdQ/+9oFW2ytFrrHtzVS+ukMK3OHL9WF3+9oWyh4LPytsjlQ DN+fS9eksjppYOScZNqUWTday6dNYgT4NehPYRXs8FxG1k2DVBpxxtt7ccOjvzNa67sC qXkw==
X-Gm-Message-State: AGRZ1gK034WHFiEPNdBynpVLSvGrmM1OBlBR+u4aFB67+AFnFwSAjONx bChNGuL8x6R5CRGKE9nmY3upg7gV
X-Google-Smtp-Source: AJdET5fh5f6NX4YTSF/j6IkJfkJALYNqtCPkJLZ1+ZfDbqgg8t52zr79e0/GoSnRXMLccOvOFDE+ww==
X-Received: by 2002:a1c:9f01:: with SMTP id i1-v6mr291313wme.8.1541465976373; Mon, 05 Nov 2018 16:59:36 -0800 (PST)
Received: from [192.168.0.11] (89.141.9.215.dyn.user.ono.com. [89.141.9.215]) by smtp.googlemail.com with ESMTPSA id g10-v6sm33440648wru.39.2018.11.05.16.59.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 16:59:35 -0800 (PST)
To: Harald Alvestrand <harald@alvestrand.no>, Bernard Aboba <bernard.aboba@gmail.com>
Cc: RTCWeb IETF <rtcweb@ietf.org>
References: <185c8d1d-3971-ad09-eee0-a26bed446a96@alvestrand.no> <CALiegfmbghnBtDt=wfCAbOWi5SDFTi2qPgDOuXHRazKSvvCKNQ@mail.gmail.com> <CA+ag07YD3oSuL=R=h-28waha4b7xf7haU+-oWuNbzO_sBY4MQw@mail.gmail.com> <e567832e-1918-d51c-6f00-a732547c0a8e@alvestrand.no> <CA+ag07byo1vReeo2uMKxmF1tnzW+4CJSMPLaJO79H0s9j0PO0g@mail.gmail.com> <31fb92c1-2934-c33f-a3cf-552f027eacda@alvestrand.no> <bb7f863b-510c-f460-c9b0-843d500784b8@gmail.com> <5db76ada-b896-7eba-b42e-85b2e239dc42@alvestrand.no> <db90e287-145b-5ffe-18c0-f38faed76c07@gmail.com> <150c76b7-64eb-2e75-c9e0-2f503e705e4b@alvestrand.no> <CAOW+2duSN5u7u+JrSpvE509k47j7Uuu4=gKy5eMFeAnw5p=kiA@mail.gmail.com> <e547e9b3-90c5-fe3b-8f72-6038f2bfd5a6@alvestrand.no>
From: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Message-ID: <50f7f9d1-5259-57d0-4d49-093e98164961@gmail.com>
Date: Tue, 06 Nov 2018 02:02:57 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <e547e9b3-90c5-fe3b-8f72-6038f2bfd5a6@alvestrand.no>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/ewzpac7CXr6fmTnH3pemdhOzrpc>
Subject: Re: [rtcweb] JSEP question: How to set up simulcast for server-originated calls?
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.29
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, 06 Nov 2018 00:59:40 -0000

On 06/11/2018 0:50, Harald Alvestrand wrote:
>> [BA] Most of the code examples I have seen that use addTrack for 
>> simulcast call setParameters prior to createOffer().  To allow this, 
>> we might consider saying that when addTrack returns, the encodings 
>> are initially null, and so can be set by setParameters().
>
> We could also allow the number of encodings to be changed in general, 
> with the proviso that if you increase the number, you have to inspect 
> the result to see how many you got (browser would drop extra elements).

IMHO the number of encodings should be allowed to be changed by 
setParameters (either for a transceiver started via addTrack or 
addTransceiver) until the corresponding m-line is negotiated by an SDP 
O/A (until it has a mid value?). Changing the number of encodings after 
that, I don't think it is allowed by the simulcast draft.

Best regards

Sergio