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

Iñaki Baz Castillo <ibc@aliax.net> Mon, 05 November 2018 13:14 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 D525D129C6A for <rtcweb@ietfa.amsl.com>; Mon, 5 Nov 2018 05:14:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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=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 VxN_7L0hLYFn for <rtcweb@ietfa.amsl.com>; Mon, 5 Nov 2018 05:14:53 -0800 (PST)
Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) (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 CF5EA12426A for <rtcweb@ietf.org>; Mon, 5 Nov 2018 05:14:52 -0800 (PST)
Received: by mail-vs1-xe31.google.com with SMTP id s9so5034619vsk.7 for <rtcweb@ietf.org>; Mon, 05 Nov 2018 05:14:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aliax-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sZno3Ge1xzbHnnD6YLbbB6oOfTYeIB2f/iwZvDNOY94=; b=Ev1hl6aCx0rzvu6tAgZhfL11gClGLKy0BAInYytMNSlbrvIuGCjh7ueGhQ/dUlE2y6 vySQSQrbxaK0PDBAqkDyP2/XB1WpZ3PncBkU2Kr8L3XWip+qaa7w6C5pL9HbPld/Y7+n 4uPpsoALmzqoah0WEwKuq7RjQtUFnzih2TSQGg/C6rtovZcMfNOUGaT+57VzUshCZQTm L2Ra+XgL0F/9BC5uMl04uWNQd7Z7a73XLzjCzsVA7n6Zf2Xp91kjsK3DrZOQuShh6LDR 9Dumq3jjw9vWPZZ0Cif7xutOo1VI8bIVnXRn85WF8p7rJ34mgGL671zCpivFpRFwPdOh KqEg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sZno3Ge1xzbHnnD6YLbbB6oOfTYeIB2f/iwZvDNOY94=; b=q5eRlwptabc/X/cCY+sq4vaRU38BAyakpcWEDGyRh0B0jXwhJ+/pSSWLb4lSkTqE5f OgewVQWjIPXzR7K8x010rxv7tcxlS7A0MAupx625o+TcIugmJPd29vC/Orlhsl6bfcrM ibTGymmZPoZpYcR4nUsSUcFTy7GUZpZ5kaLuGWUnUI8yQ4G2cjdS2/5t8Kzcl+/4U/rP ZaDcAyfLwdGViL1ulRlLnr1JEC/BkNb8+RdAxPbs+NSEI5rPLhsGzU4dU9CZwbtSihxg U9u6tNoCEX5k7teYcPvJ6Kb3mmmdaYdXeI5nfN6/V5C5uDbQycXBo3Le0qSz5r4YKjma Ouow==
X-Gm-Message-State: AGRZ1gJWofepDM8p+PLqoD2uhDDj6Zh+bjFF3c/OZ4fRHznJTfENO+O7 xA57HJlij/J18YzWimFS1fmb70RTX1hkBnc5mYgy6Q==
X-Google-Smtp-Source: AJdET5e3qHV1c38QO9IOkr29XxX5cFugUzwo4gn+LL6/HemrqYHvFzvCHrwQ+6Z4kL13KKV7jRdKHfIaD8uys1kKDIU=
X-Received: by 2002:a67:3edc:: with SMTP id a89mr5043109vsi.136.1541423691486; Mon, 05 Nov 2018 05:14:51 -0800 (PST)
MIME-Version: 1.0
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>
In-Reply-To: <db90e287-145b-5ffe-18c0-f38faed76c07@gmail.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Mon, 05 Nov 2018 14:14:39 +0100
Message-ID: <CALiegf=7yJJEbGT9SrbcEBBo9cnBbPimDP_oaTzJL63hrnXGoQ@mail.gmail.com>
To: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Cc: Harald Alvestrand <harald@alvestrand.no>, rtcweb@ietf.org
Content-Type: multipart/alternative; boundary="000000000000946aad0579eaab7f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/lCmfskI__QPnqcgOu7ypRPEghs0>
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: Mon, 05 Nov 2018 13:14:55 -0000

As Harlad said before, sender.getParameters() should not return more times
than the number of encodings the browser supports, so of the remote offer
has more than those, we have an API problem.

El lun., 5 nov. 2018 14:03, Sergio Garcia Murillo <
sergio.garcia.murillo@gmail.com> escribió:

> On 05/11/2018 12:45, Harald Alvestrand wrote:
> > I do fear that simulcast will continue to affect parts of the spec that
> > we don't expect it to. But we don't have the luxury of specifying it
> > halfway; either we rip it out altogether, or we specify it in enough
> > detail for interoperable implementation.
>
> I agree to that. If we are able to find an "easy" (i.e. not introducing
> too many changes) I would not have any issues adding support to that.
>
> Something like:
>
> - Browser adds a track via addTrack
>
> - Browser call SRD with a recv simulcast m-line offer
>
> - The transceiver is created with one send encoding per rid offered by
> the SFU with default values and all send encodings except first one with
> active=false (this would be the only required change)
>
> ----- browser encodes/sends a single rtp stream, same as if the remote
> offer was a non simulcast stream--
>
> -Browser calls sender.getParameters(), modifies the desired send
> encoding parameters ( scaleResolutionDownBy,  maxFramerate, maxBitrate,
> etc) and enables them by setting active=true
>
> Would this approach fulfill the requirements?
>
> Best regards
>
> Sergio
>
>
>