Bitford: A Streaming BitTorrent Client for Chrome
summary
Bitford implements the BitTorrent wire protocol in JavaScript inside a Chrome Packaged App to fetch .torrent files and begin playback almost immediately over TCP client sockets. It stores downloaded pieces using the browser fileSystem API and IndexedDB, performs background SHA-1 hashing of 256 KB pieces, and feeds verified blocks into the HTML5 MediaSource Extensions buffer while managing flow control around Chrome’s numeric socket IDs; the demo works, with remaining gaps due to Chrome API limits (e.g., no server sockets).
AI-written summary · about
chapters (11)
- 0:00Internet TV 2.0 and BitTorrent
- 1:59Bitford in Chrome
- 3:52BitTorrent protocol in browser
- 7:08Challenges in Chrome
- 11:50Firefox OS limits
- 14:51Network stream processing
- 18:05Hash validation and memory
- 21:27Streaming with MediaSource Extensions
- 22:32Chromecast and feeds
- 24:48Privacy and performance in BitTorrent
- 25:54Conclusion
related talks
33mBitTorrent Apps with JavaScript
34mWebRTC Mad Science
49mWebTorrent
38mPushing the limits of JavaScript with P2P and streaming BitTorrent
22mJavascript... Torrents... and Mad Science!
35mExploring the world of decentralized networks with WebRTC
20mUsing WebTorrent trackers for purposes other than torrents
23mBuilding and browsing the peer-to-peer web with the Beaker browser
