Re: [rtcweb] Mode 1 and getUserMedia
Justin Uberti <juberti@google.com> Thu, 13 September 2018 06:00 UTC
Return-Path: <juberti@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 8D584130F61 for <rtcweb@ietfa.amsl.com>; Wed, 12 Sep 2018 23:00:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.509
X-Spam-Level:
X-Spam-Status: No, score=-17.509 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 3fGfbrCjl81Y for <rtcweb@ietfa.amsl.com>; Wed, 12 Sep 2018 23:00:41 -0700 (PDT)
Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (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 D1082130E1B for <rtcweb@ietf.org>; Wed, 12 Sep 2018 23:00:40 -0700 (PDT)
Received: by mail-io1-xd34.google.com with SMTP id v14-v6so2228798iob.4 for <rtcweb@ietf.org>; Wed, 12 Sep 2018 23:00:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RMFvcj7GRPllh/sE/pW0sLwZgO5r3e9/ZsjJAUAfRGo=; b=E3lN6asSt/wJdolnahG9XBXB2mFjUe9ydbqGYd7ORiIrllQ1CYXCcKAcNgS52QDcPg fr5HF4NxM24ZqpkBZcsa5QXDSOc6TSxXLWiU/S9psbiKcD73KktfjUoNEosYdbVT8+lP ZJ71FcfuVZuLOUc/ji5zBwWBRiITCgMVeHEflOWLE2C5WqRb/c/kgwF2fnIhmYqSV3Nq 5uTJ/+POOTp624v7bTlyyI8+e+K471MA1aHAWpAE8MDJZ5+HsfJ49anYKC4HNil7PUsg yGlScYKPRfmDTLgTBQ0UEx76NDMP3/AP9QOCVutuRJvpGMLu6O3UkZNu7Vr6ZSMqTYHv 4a8g==
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=RMFvcj7GRPllh/sE/pW0sLwZgO5r3e9/ZsjJAUAfRGo=; b=h5NOjfXCCBGuzeg0JOeADLlA8FlE1vi8gn/J3cuwMzeL3IQA4CraHSYD0ZDWhnAwqD 40fnmjKzqMvamtlMHhawwWbpPMXw2OfxPDoBZ4tX5tqtdK224Zz8xotOvaA+i1/EF0t9 zGGnO2Uxd48PSmdzVI/DMh1ohim8amexi3qXW/e+IXZ3Ob0Nepm66wfUM+/cFBnung3P WRSzY8Kbh2clRyl+UzlIKI3HEVGsJkG9wSQXMSdpPAjfHK9e86mMomlWc209bUE6/XfK y9hA2zAyGbQGpofp+5FiOIOXXjpkTAs/995/f0fyJwdzDncqWPRBpyOxPwt+86GP/PUL Q5LA==
X-Gm-Message-State: APzg51BXJfM+uqHqtj1qYYOj0hEJTFAJ6Z91fOn5dYtmsozEW9mzWViB uRGS5CtYhBKCXrirPG7Oh6NFLaKNWWuLehCiIk4VioPzJfw=
X-Google-Smtp-Source: ANB0VdYI6ONURRV0WZNjzdE9+nXawezULyvV2B/c0cB20/vpUQimQkh8zDPxy7kUOlSQjrjC7fCqAzpVvCyQ0LAVk4U=
X-Received: by 2002:a6b:e70d:: with SMTP id b13-v6mr5051526ioh.38.1536818439616; Wed, 12 Sep 2018 23:00:39 -0700 (PDT)
MIME-Version: 1.0
References: <CAO5ixTHz9fhoau4Q7WJgpOp_aaDujH6pYT32MB2gX7D9-+E0fg@mail.gmail.com> <85AC649C-F7B3-40E4-B9FC-FAC8C4332A5E@westhawk.co.uk> <CAO5ixTEus6ioeXtfM2vFtjY19mHJq10-R9vC6AHN_EagXm68+g@mail.gmail.com> <BDA3B3E1-3A9F-47DF-B26B-DFA19CC7E57B@westhawk.co.uk>
In-Reply-To: <BDA3B3E1-3A9F-47DF-B26B-DFA19CC7E57B@westhawk.co.uk>
From: Justin Uberti <juberti@google.com>
Date: Wed, 12 Sep 2018 23:00:28 -0700
Message-ID: <CAOJ7v-1pmiTJ4pbtN-XADKFO1k1eHO6d9j-PgJBc4vOyH=w_Hg@mail.gmail.com>
To: Tim Panton <thp@westhawk.co.uk>
Cc: James Pearce <james@jamesandjo.com>, RTCWeb IETF <rtcweb@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002dff9f0575ba6dee"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/37iFj4ctqYF28CgLRmvv-PCU2IY>
Subject: Re: [rtcweb] Mode 1 and getUserMedia
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: Thu, 13 Sep 2018 06:00:44 -0000
Mode 1 is not needed for TURN. On Wed, Sep 12, 2018 at 1:19 PM westhawk <thp@westhawk.co.uk> wrote: > > > > On 12 Sep 2018, at 20:57, James Pearce <james@jamesandjo.com> wrote: > > > > That's interesting - in the GitHub comments, you say that without Mode > 1, you have to use TURN. > > It's my understanding that Mode 1 is also required for TURN - that's > certainly what the spec seems to say. I know Firefox will not enumerate > relay ice candidates until I've called getUserMedia(). > > No, Mode 3 explicitly supports TURN: > > " > Default route only: This is the the same as Mode 2, except that the > associated private address MUST NOT be provided. This may cause traffic to > hairpin through a NAT, fall back to the application TURN server, or fail > altogether, with resulting quality implications. > “ > > I suppose I should write some test code to verify what is actually > happening... > > I see Safari 12 looks like supporting MDNS names in ICE candidates. > > It is definitely a mess. > > T. > > > > > > > > James > > > > On Wed, 12 Sep 2018 at 15:47, westhawk <thp@westhawk.co.uk> wrote: > > Yeah, I call this the “You have to take a selfie before you fly the > drone” problem. > > I’ve just filed a GitHub issue on it for the use case spec for webRTC NV. > > > > https://github.com/w3c/webrtc-nv-use-cases/issues/1 > > > > Feel free to add commentary there as well as here. > > > > T. > > > > > >> On 12 Sep 2018, at 14:35, James Pearce <james@jamesandjo.com> wrote: > >> > >> > >> Hi, > >> > >> I have a quesion about the use of getUserMedia to obtain user consent > for Mode 1 operation. > >> > >> I have an application that uses WebRTC to deliver real-time media > streams in one direction only. Client applications are consumers only, in > some cases the client devices do not have any media capture capability. > >> I'm trying to develop a strategy for deploying the application on the > public web so, naturally, my plan is to use TURN to relay through NAT. > >> > >> I've run into trouble with > >> a) The requirement that Mode 1 is needed to use TURN > >> b) User consent for Mode 1 is tied to getUserMedia() > >> > >> Firstly, it's not clear to me why there is a restriction on using TURN > in mode 2. Does TURN reveal address information that would otherwise be > hidden to the peer? I've noticed that Chrome seems to use TURN even without > consent being given. Firefox does not. > >> > >> Secondly, with no capture devices, getUserMedia can never succeed, > thus, a user can never give consent for Mode 1. This is unfortunate, as > WebRTC is ideal for some applications that require one-way streaming to > limited-spec devices. Granted, not many devices today have no capture > capability, but even when they do, requesting permission to access a > microphone when it'll never be needed is confusing to end users. Is there a > better mechanism we can use to obtain consent when getUserMedia is not > necessary? > >> > >> > >> I know I've raised this issue tangentially before, but having to > explain issues to end users is beginning to wear thin. It's becoming a > headache. > >> > >> Thanks, > >> > >> James > >> _______________________________________________ > >> rtcweb mailing list > >> rtcweb@ietf.org > >> https://www.ietf.org/mailman/listinfo/rtcweb > > > > _______________________________________________ > rtcweb mailing list > rtcweb@ietf.org > https://www.ietf.org/mailman/listinfo/rtcweb >
- [rtcweb] Mode 1 and getUserMedia James Pearce
- Re: [rtcweb] Mode 1 and getUserMedia westhawk
- Re: [rtcweb] Mode 1 and getUserMedia James Pearce
- Re: [rtcweb] Mode 1 and getUserMedia westhawk
- Re: [rtcweb] Mode 1 and getUserMedia Justin Uberti
- Re: [rtcweb] Mode 1 and getUserMedia Adam Roach
- Re: [rtcweb] Mode 1 and getUserMedia James Pearce
- Re: [rtcweb] Mode 1 and getUserMedia Lennart Grahl
- Re: [rtcweb] Mode 1 and getUserMedia James Pearce