W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2012

Re: PeerConnection lifecycle/navigation/page reloads

From: Timothy B. Terriberry <tterriberry@mozilla.com>
Date: Thu, 26 Jan 2012 23:05:14 -0800
Message-ID: <4F224CAA.5020601@mozilla.com>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
Harald Alvestrand wrote:
> I suspect that some people will try webworkers, so we should make sure
> the semantics of having a PC in a webworker are well-defined. I'm not
> knowledgeable enough about webworkers to know whether we need to do
> anything special to accomodate them.

Web workers don't have access to the DOM, so they can't keep a reference 
to the PeerConnection object at all, and certainly won't keep it alive 
across page reloads. Assuming you can even keep the worker alive. They 
get closed once all their controlling Documents disappear.
Received on Friday, 27 January 2012 07:05:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:25 UTC