Re: [rtcweb] inactive m-lines in draft-ietf-rtcweb-jsep-05

Martin Thomson <martin.thomson@gmail.com> Tue, 29 October 2013 19:07 UTC

Return-Path: <martin.thomson@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 9D30D11E8110 for <rtcweb@ietfa.amsl.com>; Tue, 29 Oct 2013 12:07:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.522
X-Spam-Level:
X-Spam-Status: No, score=-2.522 tagged_above=-999 required=5 tests=[AWL=0.078, BAYES_00=-2.599, NO_RELAYS=-0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2tFUASIXeTc2 for <rtcweb@ietfa.amsl.com>; Tue, 29 Oct 2013 12:07:50 -0700 (PDT)
Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) by ietfa.amsl.com (Postfix) with ESMTP id 3341811E8184 for <rtcweb@ietf.org>; Tue, 29 Oct 2013 12:07:43 -0700 (PDT)
Received: by mail-we0-f171.google.com with SMTP id t60so301214wes.16 for <rtcweb@ietf.org>; Tue, 29 Oct 2013 12:07:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Yx9wlxcjbBlJ+YH/AZs+QZVeBlyymiuLpdyUReYIjxA=; b=IsUOe9gu/x/qAi5lVL4n0PBAOH0Uv7SllPaPbLT4Kz9AxsFgXQ2eDlmP4r7C2p5kwd mbg4aap4YEJkJh1gILeKAZwgzoItkz8pj0A4fitWo6fHJxP+IsWZUJ82AObGCTMFE4HR y4n6iC5S/3+hhscBRnE1gIdYaXIqYqvFTli3wpf2M7Eq6z04ghitOrINiw3UpefL4lqq VsRtFZKDPhmDgqYSYMP9SnYlFr2AbtdADYkS7apX7m5ookdqXZKYAkMsgX0F5ITNHhTl MHPRCdW2TBosiGiSWGvZgewY9jZQ2rF2451Z0XzvG/W+hbMbGuqUAmEhsXm+ZC5o4uEi IkmQ==
MIME-Version: 1.0
X-Received: by 10.194.205.37 with SMTP id ld5mr882922wjc.67.1383073662608; Tue, 29 Oct 2013 12:07:42 -0700 (PDT)
Received: by 10.227.202.194 with HTTP; Tue, 29 Oct 2013 12:07:42 -0700 (PDT)
In-Reply-To: <52700422.4020002@alum.mit.edu>
References: <526FCEC1.7000904@alum.mit.edu> <CABkgnnV4OpPNV41g4owehWOXRv0eiFb6njiu9tChQyOVR8-E3A@mail.gmail.com> <52700422.4020002@alum.mit.edu>
Date: Tue, 29 Oct 2013 12:07:42 -0700
Message-ID: <CABkgnnX0+ii2am8LhUHVmP1DHr1ygmVxYZxFMe-AVgL56ZJgOg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
Content-Type: text/plain; charset="UTF-8"
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] inactive m-lines in draft-ietf-rtcweb-jsep-05
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
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: Tue, 29 Oct 2013 19:07:50 -0000

On 29 October 2013 11:53, Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:
> This maps each MediaStreamTracks of a given type to a different m-line. I
> *thought* the use of "specified type" above meant audio/video. Am I missing
> something?

Yes.  sort of, though I'd expand "type" to encompass the concept of
compatibility.  Obviously a source with an H.264 encoder can't be
bound to an m= section that only has VP8 negotiated.

1. RTCPeerConnection binds tracks to m= sections
2. For sending tracks, that binding is tentatively made when an offer
or answer is constructed
3. Sending tracks are bound when setLocalDescription is called
4. For receiving tracks, that binding is made when the track is made,
which is when setRemoteDescription is called

When generating offers or answers, the set of bindings (including
tentative ones) - plus the enabled state of the track - determines
what of the send/recv attributes is attached to that m= section.