2014-12-18 7:57 GMT+01:00 PhistucK <
phis...@gmail.com>:
> There are a few things you can do without any relation to the DOM - using
> data channels,
You can handle your DataChannel on the worker and communicate with the
app via messages, and send text/binary messages from one to each
other.
> or forwarding streams (currently only audio streams are
> supported, I think), for example. It makes sense to enable those in Workers,
> however, the working group must specify that (it sometimes simply means to
> add WorkerNavigator implements MediaDevices or something similar to the
> WebIDL).
That's a good point. At the end a MediaStream is referenced as a
blob:// URL (not sure if this is a W3C standard or a vendor specific
choice). I understand this is not yet ready, but IMHO it should be
possible to pass such a URL via messages from the worker to the app.
For example, in a previous spec (now I think it is changing) the
MediaStream is attached to the video.src by means of
URL.CreateObjectURL(stream), which returns a string with the blob URL
as text value.