Re: [rtcweb] About the current JSEP-06 draft

Justin Uberti <juberti@google.com> Thu, 17 July 2014 16:35 UTC

Return-Path: <juberti@google.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1E0731B27DE for <rtcweb@ietfa.amsl.com>; Thu, 17 Jul 2014 09:35:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.179
X-Spam-Level:
X-Spam-Status: No, score=-0.179 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_15=0.6, J_CHICKENPOX_18=0.6, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=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 ioobq5Ss1P7z for <rtcweb@ietfa.amsl.com>; Thu, 17 Jul 2014 09:35:38 -0700 (PDT)
Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [IPv6:2607:f8b0:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E0BF11B27CC for <rtcweb@ietf.org>; Thu, 17 Jul 2014 09:35:37 -0700 (PDT)
Received: by mail-vc0-f181.google.com with SMTP id lf12so4929942vcb.26 for <rtcweb@ietf.org>; Thu, 17 Jul 2014 09:35:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KUpveQ40piWk0XvlZZzwpUulD5cLhv6xk3ypKf6SOLc=; b=oEayqJ0tgrgKOIVSNCLvf8fJ5VOVbQVopScL/I924hSDDWFh/o19q//7srRbzNNWmE cAhNZy93mfw6nIkS8UJyOqdmXIobSUc6At42NeybvzufaJ1iPbM3KxLMqy7KyiDOiSTB HGwPxRoFVdsbJs00lY+zJB6Z3ti/UpHsDTTFnF5Nhnr5HTlLlBl31eytjk7qYp4X1gN8 99JhtDk9jXPagSnNLgxOuUKEJn7+4LfQNx4uEKTU95v38TzGaJ6knYyAGEOvLbWMp1yJ JEWQEYUMf4JfhotxpCPLfhLOdyvwi9wQxnfORdP2PU/lhXlQ8QNDPEvHTKc5EP7kHd1s QncA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=KUpveQ40piWk0XvlZZzwpUulD5cLhv6xk3ypKf6SOLc=; b=QyVEdFynlicqPAx6kZ3dVjxo37gvb9nY88MCEKBIZTujfsy3MrhTqilGKlbiQ9EmrQ o9Ugi/1t3aTP3BXMcl/Me6GtYT/ah5KMUn8TPfpYyspQ1uPGyN4B191Bh5XN2FAyGbbB m+viXDaz0Yyj5/CD/RXypd4Z5JQ6skpB5zpqO30qUsaKWGwyMCSYsXyk9sRXK+JBcJkq VMngLc3Qm7u3Al6DVpD8iqUYxcPEi2gL8c4nkVaastMsNpZT4VAtmFrCA8KFj7s8n8RA SlQ13gFmhrxSz+0Y5QfxtNpzqPMpoGQeek4HBy60YKR2xYuHsUTPol6sExTxYjmfec+C 9IxA==
X-Gm-Message-State: ALoCoQl8b/sguO6pR+YKcgKgeDPH5zbH5nU1BYF00VSzO744cr9WbEMWAQP1abBRnwqTmXwHTCSA
X-Received: by 10.220.200.71 with SMTP id ev7mr28024510vcb.24.1405614934048; Thu, 17 Jul 2014 09:35:34 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.66.242 with HTTP; Thu, 17 Jul 2014 09:35:13 -0700 (PDT)
In-Reply-To: <435de87e335b8a0bfa6f843db575873b@icewarp.com>
References: <435de87e335b8a0bfa6f843db575873b@icewarp.com>
From: Justin Uberti <juberti@google.com>
Date: Thu, 17 Jul 2014 12:35:13 -0400
Message-ID: <CAOJ7v-1gd=SnaKmx_arhHdZdkBhTTn94e-k9mgY_5cco-=dtWw@mail.gmail.com>
To: Martin Ekblom <martin.ekblom@icewarp.com>
Content-Type: multipart/alternative; boundary="089e011845ead5e55f04fe663afa"
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/0lj7cCeE0fZLyLAOYOy43B1Qo-M
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] About the current JSEP-06 draft
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Thu, 17 Jul 2014 16:35:40 -0000

To make sure I understand, can you verify the examples I give below?

1 MST + no options: (unchanged)
m=video X
a=sendrecv
a=msid:foo

1 MST + N=0: (new)
m=video X
a=sendonly
a=msid:foo

1 MST + N=1: (unchanged)
m=video X
a=sendrecv
a=msid:foo

1 MST + N=2: (unchanged)
m=video X
a=sendrecv
a=msid:foo
m=video Y
a=recvonly

Based on this, I would also change the meaning of OfferToReceiveVideo:true
to mean max(1, # of MSTs), since I think the N=1 behavior would be
unexpected in the 2 MST case.


On Wed, Jul 16, 2014 at 6:20 AM, Martin Ekblom <martin.ekblom@icewarp.com>
wrote:

> Hi Justin,
>
> I entirely agree with you. Each media stream will have it's own m= line
> and extra m= lines with recvonly directional attributes should be added for
> extra streams wanted. This allows for accepting more streams than sending,
> which is entirely in line with the SDP RFCs.
>
> However, the current JSEP draft misses one small fine point. Reversely, it
> should also (MUST if you read the relevant RFC) allow for sending more
> streams than it wants to receive, ie the opposite case of the above, and
> then send m= lines with the directional attribute set to sendonly. RFC 3264
> is very clear with this: 'If the offerer wishes to only send media on a
> stream to its peer, it MUST mark the stream as sendonly with the
> "a=sendonly" attribute.'
>
> Also as part of the SDP offer/answer exchange the medias that both agents
> agree not to use should have the m= line set to inactive, ie when the
> offerer states that it wants to receive a media stream with directional
> attribute recvonly and the answerer indicates that it is unable to send
> that media by setting the directional attribute to inactive (this media
> stream will not be sent in any direction). The ordering and the number of
> media lines should not change during the offer/answer exchange.
>
> Thus I suggest the following changes. Add an item to the list in 4.1.2
> (preferably in the middle):
>
>
>
> *To convey the intention of sending a media type which is not
> expected in return (e.g., a video presentation which does not wish      to
> receive video).*
>
> Section 5.2.3.2. would be changed as follows:
>
> If the "OfferToReceiveVideo" constraint is specified, with a value of
>    "N", the offer MUST include N non-rejected m= sections with media
>    type "video", even if fewer than N video MediaStreamTracks have been
>    added to the PeerConnection. This allows the offerer to receive
>    video, including multiple independent streams, even when not sending
>    it; accordingly, the directional attribute on the video m= sections
>    without associated MediaStreamTracks MUST be set to recvonly. If
>    this constraint is specified in the case where at least N video
>    MediaStreamTracks have already been added to the PeerConnection, or N
>    non-rejected m= sections with media type "video" would otherwise be
>    generated,
>
> *the offer MUST set the directional attribute to sendonly    for the
> MediaStreamTracks in the video m= section for the remaining
> MediaStreamTracks of type video beyond N.* The directional attribute
>    for MediaStreamTracks of type video not set to sendonly or recvonly
>    SHOULD be set to sendrecv unless inactive. For backwards compatibility,
>    a value of "true" is interpreted as equivalent to N=1
> *and a value of   * *"false" is i**nterpreted as equivalent to N=0.*
>
> The change in the paragraph above is mostly clarifying what previously was
> left unexplained with the words "*it has no effect*" and not touching on
> how to interpret a value of false. Section 5.2.3.1. would need to be
> changed in a similar way.
>
> These changes would be make it comply with RFC 3264 and 4566 and also be
> in line with the somewhat unclear w3c spec on WebRTC.
>
>
> Regards,
> Martin Ekblom
> Front-end Developer
> www.icewarp.com
>
>
> ------------------------------
> -----Original Message-----
> From: "Justin Uberti" <juberti@google.com>
> To: rtcweb@ietf.org, martin.ekblom@icewarp.com
> Date: 14/07/2014 04:20
> Subject: About the current JSEP-06 draft
>
>
>
>
> Adding rtcweb@ietf.org, the right mailing list for this.
>
> This behavior (of OfferToReceiveAudio/Video) was added to be conformant
> with Unified Plan, where each media stream requires its own m= line, and
> therefore the offerer needs the ability to advertise additional m= lines if
> it needs to receive more media streams than it is offering.
>
> I agree that the w3c spec's handling of this topic could be clarified.
>
>
> On Wed, Jul 2, 2014 at 2:37 AM, Martin Ekblom <martin.ekblom@icewarp.com>
> wrote:
>
>> Hi,
>>
>> I believe there is a conceptual misunderstanding in section 5.2.3.1. and
>> 5.2.3.2. It seems to contradict the requirements of RFC 3264 / 4566 (SDP
>> offers and answers) and not be in line with the WebRTC draft. I would like
>> to contribute to improve or clarify this section, or in case I'm mistaken
>> confirm this.
>>
>> Is this the appropriate mailing list to disuss this?
>>
>> Regards,
>> Martin Ekblom
>> Front-end Developer
>> www.icewarp.com
>>
>>
>>
>
>
>
>
>
>
>
>
>
>