4 ms·
Once arbitrary data can be sent through peer connections via a browser javascript application, then there is no reason why the BitTorrent Live protocol (or some
by kzahel 14y ago
Once arbitrary data can be sent through peer connections via a browser javascript application, then there is no reason why the BitTorrent Live protocol (or some other similar P2P streaming protocol) could not work over WebRTC.
One difficulty I see is actually getting the binary data into a <video> element. It would be in theory possible to write to the file in the HTML5 FileSystem API and point the video element to it, but that would require transmitting the stream in a way that is ameliorable to seeming like a static video on disk.
- ihsw 14y agoIt may be necessary to paint it via canvas, however that opens up a can of worms that completely bypasses the video element.
- doublec 14y agoPossibly the MediaSource api, which allows writing to media elements: http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/m...