W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2015

Re: WebRTC Data Channel in Workers Proposal

From: <piranna@gmail.com>
Date: Tue, 26 May 2015 18:35:01 +0200
Message-ID: <CAKfGGh0-n99VRFn6zGwwvLYPc67XH2kb8c7x1OeH0FEaOau3NA@mail.gmail.com>
To: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Cc: Feross Aboukhadijeh <feross@feross.org>, "public-webrtc@w3.org" <public-webrtc@w3.org>
> The WebRTC data channel is attached to a RTCPeerConnection, I assume the
> natural thing to do would be to make the RTCPeerConnection also usable
> in Workers?

Yes, that was my idea when I did the original proposal on Firefox and
Chrome bug trackers ;-) There were some security concerns so they
talked about make DataChannel objects transferable from the main
thread to the WebWorkers, but I think they misunderstood my proposal
and where thinking about getUserMedia instead (that definitely it's a
security concern to allow to use it from inside a WebWorker...), so
instead what it should be transferable are the MediaStream objects so
you can call getUserMedia on the main thread and after allowing its
access move the webcam stream to the WebWorker. PeerConnection objects
by themselves are totally safe to be used inside WebWorkers.


-- 
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un
monton de sitios diferentes, simplemente escribe un sistema operativo
Unix."
– Linus Tordvals, creador del sistema operativo Linux
Received on Tuesday, 26 May 2015 16:35:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:44 UTC