Re: WebRTC in workers

On 6/26/2018 7:28 PM, Feross Aboukhadijeh wrote:
> Seconding what Youenn said. Transferring a data channel to a worker 
> while the PeerConnection remains in the main thread would prevent many 
> use cases. It's best if the PeerConnection can be initiated directly 
> in the worker so it can be shared among many open tabs, or initiated 
> entirely from within a service worker in response to a push 
> notification or 'fetch' event.

Clearly being able to run PeerConnections from Workers (or 
ServiceWorkers) would be more useful, even if it was only for 
DataChannels (not media).  There are some security/privacy/abuse issues 
to be thought about related to that, but it's worth investigation.  (And 
being able to do media would be even better, though again it adds to the 
complexity required in the browser, and to some of the privacy and 
user-interaction/notification issues.)

-- 
Randell Jesup -- rjesup a t mozilla d o t com
Please please please don't email randell-ietf@jesup.org!  Way too much spam

Received on Wednesday, 27 June 2018 00:03:52 UTC