Re: [rtcweb] Proposal for a JS API for NoPlan (adding multiple sources without encoding them in SDP)

Peter Thatcher <pthatcher@google.com> Mon, 17 June 2013 18:00 UTC

Return-Path: <pthatcher@google.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 3731921F9DA3 for <rtcweb@ietfa.amsl.com>; Mon, 17 Jun 2013 11:00:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.677
X-Spam-Level:
X-Spam-Status: No, score=-1.677 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, 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 xw3wJ4qwhc-K for <rtcweb@ietfa.amsl.com>; Mon, 17 Jun 2013 11:00:22 -0700 (PDT)
Received: from mail-pb0-x231.google.com (mail-pb0-x231.google.com [IPv6:2607:f8b0:400e:c01::231]) by ietfa.amsl.com (Postfix) with ESMTP id 6173921F9D7E for <rtcweb@ietf.org>; Mon, 17 Jun 2013 11:00:22 -0700 (PDT)
Received: by mail-pb0-f49.google.com with SMTP id jt11so2985812pbb.8 for <rtcweb@ietf.org>; Mon, 17 Jun 2013 11:00:22 -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=dJCH+CF2zIZa/PoVUB1kx3Bju/KNu1OELxoaxEESgF8=; b=leAXb9zYty27X16WyWg6OqJiGFTpfaxRy51emRmHYbB5ZElEWFOJkUqR0Y6q5Lqmlq 9H2bvtOahUjyBaTB6nuLtD0rymzkuCa74aK25rkLXdEkf6iwKhFGXUblHtOvQV3X1fNH Lz6OBvBCtgqbEY88BVcvbqTJ26wLQwNnksPNDkNyvu+oeFmd11GK3BOSzBhbFXDYfdld ZljcVUKiB/73rAi2OuImNZVQ0aAcxL39m93qPjxJGE3CgSag/yiSnBzuPKuaKr6bbXyi CnFC3SJjc6WxWRKLd1DrlEstHEuc7JOGnmzN/wxPH/ghMjCyWZNqD/7NKIPZ4zBTUw3c HFzw==
X-Google-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:x-gm-message-state; bh=dJCH+CF2zIZa/PoVUB1kx3Bju/KNu1OELxoaxEESgF8=; b=nCzHRxGDWUVz4nnnln6xi1GI0862Ok5xqiT19RQJd/UG3LfzVERYtf90nxFS1V+yHl wSNLxumDv9Zd/2N8luFjlBPf9/+LXoqdB6oKUOrV1dFCt1JYMO/y2Bm3BOyEcwbI4cPb uCL6JbB0IIwTse505gPvL3thXpBlj297khtC2LV4NfpY5CBn6WyCTADcCvOV2BI/aVJ7 DWfnLFUwH8HMl1x0xF28dawoCbU1ndSqyZJMx385pBAMAlyN2Q47Ykbn22CqXB5+XDsp Tx6xYiKQsKANFJ1oBJKaDR/b4CUQNAk2DOeMDy+/EE+nI95M+fKgjgqAm7toalXkliG/ lhQg==
X-Received: by 10.68.175.68 with SMTP id by4mr13972252pbc.53.1371492021924; Mon, 17 Jun 2013 11:00:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.66.88.8 with HTTP; Mon, 17 Jun 2013 10:59:41 -0700 (PDT)
In-Reply-To: <CALiegfmNS=CJkUC76Lz2DW2Zuntffa9Xh1fwopqT033aRN3R_A@mail.gmail.com>
References: <CAJrXDUHdoxLTsofiwLBdwBNnCCkCBgjSdbmLaXrNEPODMrsSVA@mail.gmail.com> <1447FA0C20ED5147A1AA0EF02890A64B1C2FC071@ESESSMB209.ericsson.se> <CAJrXDUEL1ynci_bwLydYgvWD=+FQKhurzV3vC0X4LrgBjUMrkA@mail.gmail.com> <57A15FAF9E58F841B2B1651FFE16D28104C918@GENSJZMBX01.msg.int.genesyslab.com> <CAJrXDUHphQq+=vWRNjuRN1BAcUz4kfUf7DEwCPgBBX-esQh0HQ@mail.gmail.com> <CALiegfmNS=CJkUC76Lz2DW2Zuntffa9Xh1fwopqT033aRN3R_A@mail.gmail.com>
From: Peter Thatcher <pthatcher@google.com>
Date: Mon, 17 Jun 2013 10:59:41 -0700
Message-ID: <CAJrXDUG_mNmYjZJf1nJvUhZf0WkrdmrCxCSdC9WoZspCexWrng@mail.gmail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Content-Type: multipart/alternative; boundary="047d7bd6c6acc78e5604df5d5e17"
X-Gm-Message-State: ALoCoQlsHH55ApgayQbBV53JNJgzkztqZLEWs0r4oKb4LUZBh38OJ4URGm4hhUhBPqF2g0V3GDyUq5kRhIggiN3zLjCau5U2DiHDavZXXaTTzywx+2NZQ2wIgwV3x4AsXXE9Ka02GvN1IRTNhnYS5BWxozRLkn7uZlciS0KXhyJSFp2ChoehYw+HdWeeWlVE1I7S1zfrVyEz
Cc: "<rtcweb@ietf.org>" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Proposal for a JS API for NoPlan (adding multiple sources without encoding them in SDP)
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: Mon, 17 Jun 2013 18:00:23 -0000

In that use case, just call createLocalStream again with the new
MediaStream from GetUserMedia and get a new LocalMediaStream.  There's no
need to alter the existing one.


On Mon, Jun 17, 2013 at 9:34 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:

> 2013/6/17 Peter Thatcher <pthatcher@google.com>:
> > But I don't really see a use case where you would need to add tracks to a
> > MediaStreamTrackDescription, other than when parsing signalling and
> building
> > the MediaStreamTrackDescription to send down into createRemoteStream.
> > Perhaps if we had a use case, we could define such support.  But
> otherwise,
> > I'd say it's not allowed.
>
> Use case:
>
> - Start a session/call with just audio (no video requested to the user
> via getUserMedia).
> - Latter the user wants to add video.
> - For that a new getUserMedia(video: true) is requested.
> - Extract the video track from the obtained MediaStream and add it to the
> PC.
>
> Hope this is an enough common use case.
>
>
> --
> Iñaki Baz Castillo
> <ibc@aliax.net>
>