Re: WebRTC in {Web,Shared,Service} Workers

On Tue, Apr 10, 2018 at 4:16 AM, westhawk <thp@westhawk.co.uk> wrote:
> On 9 Apr 2018, at 19:04, youenn fablet <yfablet@apple.com> wrote:
>
> I would favor enabling instantiations of PeerConnection in workers.
> It seems particularly useful in ServiceWorker contexts where the link with a
> particular Document may be broken at any point.
> If we have that, there might be little incentive in transferring data
> channels.
>
>
> That would be nice, but there are a bunch of user interaction requirements
> that may make that tricky,
> - Getting local IP addresses requires a user to grant media permissions.
> - Authenticating an ID requires a user interface
> - starting a media stream requires a user click
>
> That’s just off the top of my head. I suspect more would be found if one
> looked hard.
>
> I have the feeling that transferring a connected DataChannel over a
> postMessage may be
> more of a quick win.

For me, the lifecycle of a ServiceWorker is the biggest hurdle.

Received on Monday, 9 April 2018 21:57:47 UTC