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

Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> Mon, 05 November 2018 13:17 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 7F27712F1A2 for <rtcweb@ietfa.amsl.com>; Mon, 5 Nov 2018 05:17:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, 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=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 w-lwkDqmmued for <rtcweb@ietfa.amsl.com>; Mon, 5 Nov 2018 05:17:18 -0800 (PST)
Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 41F81129C6A for <rtcweb@ietf.org>; Mon, 5 Nov 2018 05:17:18 -0800 (PST)
Received: by mail-wr1-x42f.google.com with SMTP id z16-v6so9506413wrv.2 for <rtcweb@ietf.org>; Mon, 05 Nov 2018 05:17:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8vbM3KJvrCLoJ3aqAyMWfYitINjf/iLDvuRCsZ8wG8o=; b=F3jLLqMoMRj5uNqIUkdoCvPmxvPZx7Qu2Qoxmo9b9CnZ86xGl2NJXatHBg+0RVe63e NnTUu/p1oSL3LBXd/slqsBiFfVcbOYukYdeMjZuEuUBd5QbgTrNb+t1I3rZ+lHUrO8gd S57Ak7klLCjgzfYEgFKlglODxZ9EpiC0aUcwcKBsUNCZCKHQ65XU7weB+Objd+TCkHTw TWX08yCP3n43ARRDvx92wyIPY0c7AhKmvnlYtfMD0oQ57udP5Oh+2uRU3EEb5aWidfXT QIDlTm9ONCHo4Ze6nJcB3OiC1zO7ZQzSfk7rB6HA/FSckmNYh56xr9yWcq7sQ3iYI3um o1IA==
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=8vbM3KJvrCLoJ3aqAyMWfYitINjf/iLDvuRCsZ8wG8o=; b=Ea/UJAUtz5QFocuphkj3HyII8OBooVdrtHiUQ6Kw3Fi+JcLboVl6FDArJPyLIikun7 gW6MrQFIBv8yjOwhrLL2XNu0+872+0fDmDbIJbL7sYw4Lw7niKN1/amBKd7zVZga2h7F G9FjbJLyiiBN2iFjSuQtU9IeJ9QB5oaveAQGwX3rZ7UOcO88Y702qWDo3Qn2nQOL7trh 1ng/jDPv5uYVUO9iSM9vNA4q1wVq+1B63CWoFc5rDdy8cmPVu4EWrUdGR6Xm7su39JUQ eexa9i9QvK5GBbTh1ez5sXLDdsAal/K9hW4dPd9IgXcngO3WbUVMHe8JqYDHyeCws9wO wzlQ==
X-Gm-Message-State: AGRZ1gLs3uPfzKqQsT5xa/KwHWeFX3UanKpOl31jxYbGK/5EEmkzB8/7 f5d+TgtlROB81E8EUUKUSbYLTS0eLlqHtgPGQgfXQw==
X-Google-Smtp-Source: AJdET5dnfup5u4q1s11wZBzOXoSDayQVAgqjk4MYC87TVlpECQNEgnlKnT59uUC/jlvD7ySqm7EWdDVXFymx4y7d0M4=
X-Received: by 2002:adf:e14b:: with SMTP id f11-v6mr18690748wri.42.1541423836672; Mon, 05 Nov 2018 05:17:16 -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> <CALiegf=7yJJEbGT9SrbcEBBo9cnBbPimDP_oaTzJL63hrnXGoQ@mail.gmail.com>
In-Reply-To: <CALiegf=7yJJEbGT9SrbcEBBo9cnBbPimDP_oaTzJL63hrnXGoQ@mail.gmail.com>
From: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Date: Mon, 05 Nov 2018 14:17:04 +0100
Message-ID: <CA+ag07ZuGYBhr=djPP=nLXLX96Yp2O4H8rJT2z8RVvNTiky2qw@mail.gmail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Cc: Harald Alvestrand <harald@alvestrand.no>, RTCWeb IETF <rtcweb@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003bb6f60579eab4ec"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/2ViIJoyuxxO-jkUUA_RvcyLwwFQ>
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:17:21 -0000

if remote offer has more rids than what the browser support then the m line
should be rejected.


El lun., 5 nov. 2018 14:14, Iñaki Baz Castillo <ibc@aliax.net> escribió:

> 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
>>
>>
>>