Browser support
louiscenter opened this issue · comments
It would be cool to port hypervision
out of electron and make it completely usable within consumer browsers like Firefox and Chrome.
For this to happen, hypercore
would first need to add browser support, and this is already planned: holepunchto/hypercore#72
Then we would need to use something like mafintosh/random-access-memory
for feed storage.
Swarming the data is also something that needs work, because hyperdiscovery
and its dependencies don't run in the browser. The following link recommends ways in which you can do dat
stuff in the browser: https://docs.datproject.org/browser
Being able to watch broadcasts from a browser would be the first priority, as there are still a number of use cases where broadcasting from an Electron app is useful (doing cool things with ffmpeg
for example). That said, clients swarming via discovery-swarm
aren't compatible with clients swarming via webrtc-swarm
, so if broadcasting continues to be done via a desktop app, it would have to swarm via WebRTC
instead.
The http server would need to be replaced too. MediaSource should work.
@mafintosh Feeding the header and clusters from webm-cluster-stream
into the MediaSource API only works if none of them are missing. Are they somehow dependent on each other?
Any progress on this? I noticed hypercast but that is for beaker browser only