Re: [rtcweb] Rejecting MediaStreamTracks in JSEP

Justin Uberti <juberti@google.com> Mon, 03 February 2014 20:26 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 14C8A1A020C for <rtcweb@ietfa.amsl.com>; Mon, 3 Feb 2014 12:26:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.313
X-Spam-Level:
X-Spam-Status: No, score=-1.313 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_18=0.6, RP_MATCHES_RCVD=-0.535, 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 Q1M90oAMMEIj for <rtcweb@ietfa.amsl.com>; Mon, 3 Feb 2014 12:26:03 -0800 (PST)
Received: from mail-vb0-x22a.google.com (mail-vb0-x22a.google.com [IPv6:2607:f8b0:400c:c02::22a]) by ietfa.amsl.com (Postfix) with ESMTP id 49F4C1A015A for <rtcweb@ietf.org>; Mon, 3 Feb 2014 12:26:03 -0800 (PST)
Received: by mail-vb0-f42.google.com with SMTP id i3so5195099vbh.1 for <rtcweb@ietf.org>; Mon, 03 Feb 2014 12:26:03 -0800 (PST)
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=WilmkZSIp/Ei5CTTk8fOUXOeezBIRlvTnyFH29hkTOw=; b=Mvk6kDsfthe+oxLf685Fbc+tQd2ZY4gAqGGbuByZLZfNuR+q65YsQVy8hkHeXc//kO ZXceb6pPJQ6kjJcmURWPBcm2VWvepQtJByqDN73xK6/ZVCnnh7f4NE4pROIOAFCux95I ZYKju+erNlNeDDWTNJtG2w+HUICZhbK473OFVSopcKfFBkW3mgXpA1Mjx64yBkxwH1/6 mnKkFZ7R/RwcVPWpYz8HkP8tplqixLHcTs76ommE+qIAmaTbR+yBpSDTIt3XJ3aD+XWh LL422Q7EDMNG8hOpochv7j/pqT7NF8y64ONavabGL60tTu0okor4n60fzwntkUJQfxu4 kutw==
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=WilmkZSIp/Ei5CTTk8fOUXOeezBIRlvTnyFH29hkTOw=; b=MGACLfEhyftPJPCbcWPfB4D1WqsZaiT4JL1gqWkrMXz4uHaTHeIyu9O4dnew7SR0Qd Dva/J8TaX97dtA+kstl3L8TP7yZmmywoggMZ2dz+I5kd/9CokfVy/AVGfUhZCB2OUwQb rlmJpqCzMLn0D0J/8xt9GP6QqjxVHebWvdICWkKgjWOyFN/8yey+i/E+DwLdCr3PUICx cTErZrnPJwcD7dOeCR8zS5gtcUcG7zy5aBjJUuluPAS9cme21yvD+GRdb9n8Tk6tew+x ZMPh4CWN2dpEr0YD9Xhl4uZ6ZLv2Fy2RA2E4ZTl5mJ7Ytg6p31xkZwlFWqNKqCBvS9yn dlBg==
X-Gm-Message-State: ALoCoQmfXVrjdfaFjsYewdGcHD/N6zb+kGCB3iTS/PrkBeSAXKFY8KUMe4AtBHkeFYEhVvoYrJ9RC2wpYrutyZYgkhgjZL6NI/wTytpACFZNSwTjzF44qUNQWcFmTP/Vo+ed9yr/1tok5rb4/A5sIy1yh8rDOqFJ+DZVCFIY0Pqt7cRKKYXwNOb8wIvmdDsMaOLtswfvKhO1
X-Received: by 10.58.66.137 with SMTP id f9mr29839224vet.11.1391459162947; Mon, 03 Feb 2014 12:26:02 -0800 (PST)
MIME-Version: 1.0
Received: by 10.52.89.170 with HTTP; Mon, 3 Feb 2014 12:25:42 -0800 (PST)
In-Reply-To: <52EFF9E0.40808@nostrum.com>
References: <CAOJ7v-22T7hLMdC2je0nLk34MXQ8L+JFWLtAz--6Ryt+DMaMvQ@mail.gmail.com> <52EFF9E0.40808@nostrum.com>
From: Justin Uberti <juberti@google.com>
Date: Mon, 03 Feb 2014 12:25:42 -0800
Message-ID: <CAOJ7v-2adSjCiwEp=QRcY+=cYKiiubyjz=rjeMHH4qC56BP1Vg@mail.gmail.com>
To: Adam Roach <adam@nostrum.com>
Content-Type: multipart/alternative; boundary="047d7b33d85620aa3104f1865571"
Cc: Cullen Jennings <fluffy@cisco.com>, "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Rejecting MediaStreamTracks in JSEP
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: Mon, 03 Feb 2014 20:26:05 -0000

On Mon, Feb 3, 2014 at 12:19 PM, Adam Roach <adam@nostrum.com> wrote:

>  On 2/3/14 13:27, Justin Uberti wrote:
>
> Therefore, I think we need some similar way for a receiver to do the same
> for a remote track.
>
>
> Yes.
>
>
>  And fortunately, I think we have a surface that can be used for this,
> namely the "recv-appId" attribute that has been discussed in the context of
> unified-plan and explained in
> http://tools.ietf.org/id/draft-even-mmusic-application-token-02.txt and
> unified-plan. If an endpoint doesn't want to receive a particular track on
> a m= line, it sets the m= line to a=sendonly and also removes any
> a=recv-appId.
>
>
> No.
>
> The problem is that you're defining semantics to a behavior that is
> indistinguishable from the behavior exhibited by something that does not
> support app-id: if the thing on the other end isn't using app-id, then an
> attempt to put a stream on hold will be misinterpreted as an attempt to
> reject or remove it.
>

See my response to Martin. Putting a stream on hold will never result in
that being misinterpreted as a reject; on the contrary, without appid,
there is no way to 'fully' reject half of a stream, and, as a problem
confined to pre-unified-plan devices, I think that is probably OK.

>
> I agree that we want an SDP operation that differentiates between "don't
> send me this now" and "don't send me this ever" [1]  -- but it needs to be
> explicit. Something more like "a=i-am-rejecting-this-stream", but with a
> less cumbersome name.
>
> It's not clear to me that adding a new attribute would solve any problem
that appid doesn't solve; you still need to deal with the "other end not
using it" issue.


> ____
> [1] Along with a Javascript control that allows us to do the same thing,
> but that's a W3C issue.
>

Agree. But while we're on the subject, I am thinking that MST.stop() ==
"not ever", and RtpReceiver.active = false causes "not now".