Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-29Raise error when streaming from a removed torrentDavid Chevers Williams
In Node.js 8.2.1, when a torrent is removed while a file from it is being streamed, file-stream.js exits, crashing Node with a TypeError: VM535 file-stream.js:64 Uncaught TypeError: Cannot read property 'get' of null This patch checks whether the torrent has been marked as destroyed, and if so, raises the error to the file stream.
2016-04-21move method comments to api docFeross Aboukhadijeh
2016-03-19filestream.destroy(): accept onclose callback instead of errorFeross Aboukhadijeh
2016-03-17FileStream: should emit 'close' and potentially 'error'Feross Aboukhadijeh
2016-02-05Swap core stream for readble-streamZander Mackie
2016-02-03Clamp file.createReadStream({ end: num }) valueFeross Aboukhadijeh
`render-media` and `videostream` may get passed an `end` value that’s too large. Clamp it.
2016-01-04cmd: fix exception when quittingFeross Aboukhadijeh
2015-08-22BREAKING: rename `torrent.storage` to `torrent.store`Feross Aboukhadijeh
2015-08-22remove stray console logsFeross Aboukhadijeh
2015-08-22BREAKING: Use abstract-chunk-store for storageFeross Aboukhadijeh
Part of an effort to share more code with `torrent-stream` by @mafintosh: https://github.com/mafintosh/torrent-stream/pull/133 https://github.com/mafintosh/torrent-stream/pull/132 Storage is now based on: https://www.npmjs.com/package/fs-chunk-store (in node) https://www.npmjs.com/package/memory-chunk-store (in the browser) and: https://www.npmjs.com/package/immediate-chunk-store https://www.npmjs.com/package/torrent-piece This is a BREAKING change, since users who pass in custom storage engine with `opts.storage` will need to update their storage backend to be `abstract-chunk-store` compliant: https://www.npmjs.com/package/abstract-chunk-store There are also likely other miscellaneous BREAKING API changes, since this was a huge refactor of the codebase.
2015-07-08standardFeross Aboukhadijeh
2015-07-08BREAKING: Add file.appendTo(); remove file.pipe(videoNode)Feross Aboukhadijeh
# Removed API `file.createReadStream().pipe(videoNode)` Previously, the `stream.pipe` method was overridden in a non-standard and confusing way to be able to pipe to `<video>` and `<audio>` tags. This is removed now. `stream.pipe` still exists, but it works just like in node now. # New API: `file.appendTo(rootElem, function callback (err, elem) {})` Show the file in a the browser by appending it to the DOM. This is a powerful function that handles many file types like video (.mp4, .webm, .m4v, etc.), audio (.m4a, .mp3, .wav, etc.), images (.jpg, .gif, .png, etc.), and other file formats (.pdf, .md, .txt, etc.). The file will be fetched from the network with highest priority and streamed into the page (if it's video or audio). In some cases, video or audio files will not be streamable because they're not in a format that the browser can stream so the file will be fully downloaded before being played. For other non-streamable file types like images and PDFs, the file will be downloaded then displayed. `rootElem` is a container element (CSS selector or reference to DOM node) that the content will be shown in. A new DOM node will be created for the content and appended to `rootElem`. `callback` will be called once the file is visible to the user. `callback` must be specified, and will be called with a an `Error` (or `null`) and the new DOM node that is displaying the content. ```js file.appendTo('#containerElement', function (err, elem) { if (err) throw err // file failed to download or display in the DOM console.log('New DOM node with the content', elem) }) ``` Fixes #370
2015-07-08Fix PR: fix buffer is not defined errorFeross Aboukhadijeh
2015-07-03support all mediasource types (instant.io parity)Feross Aboukhadijeh
2015-05-24handle uppercase file extension namesFeross Aboukhadijeh
2015-05-18use 30s piece timeout like torrent-streamFeross Aboukhadijeh
2015-05-18deprioritize selection after filestream.destroy()Feross Aboukhadijeh
cc @jhiesey
2015-05-18remove torrent from client on fatal torrent errorFeross Aboukhadijeh
also, fixed a bug with choking where we were inspecting wire._destroyed instead of wire.destroyed.
2015-03-07style: always use bracesFeross Aboukhadijeh
2015-01-29styleFeross Aboukhadijeh
2015-01-27JavaScript Standard StyleFeross Aboukhadijeh
2015-01-16Use a map instead of multiple ternary statementsJoseph Dykstra
2015-01-16Renamed instances of 'video' to 'media'Joseph Dykstra
2015-01-16code styleFeross Aboukhadijeh
2015-01-16Add <audio> tag streaming support for mp3 filesmathiasvr
2014-10-20support streaming into video tagFeross Aboukhadijeh
close #144
2014-09-21merge `bittorrent-client` into this moduleFeross Aboukhadijeh
When I started the WebTorrent project I thought there were going to need to be two separate client implementations (bittorrent-client and webtorrent-client) that would get tied together in a higher-level module. Fortunately, this was not necessary because of the awesome “browser” field support in browserify. By substituting just a few modules, we can make the same module (webtorrent) work in node AND the browser, with the same codebase! So, from now on, you can just `require(‘webtorrent’)` in node or the browser, and it will just work. You can also `npm install webtorrent` if you want to use bittorrent in a node app or script. Lastly, you can `npm install webtorrent -g` if you want to use webtorrent as a command line app (it installs a `webtorrent` command).