📜 ⬆️ ⬇️

Torque - JavaScript interface for BitTorrent

Yesterday, the BitTorrent protocol developers announced a new tool designed to embed P2P client capabilities in the browser.

The open-source project BitTorrent Torque is in the alpha version stage and is a set of JavaScript libraries for accessing the capabilities of the Torque plugin ( OneClick is now available for Chrome). The downloaded plug-in allows you to implement a number of features (most of them are not yet available on the project page), in addition to actually downloading files, such as video streaming content, access to the device, manipulation of torrent files, video and audio encoding of media content.

Creating an object for Torque looks simple:

var btapp = new Btapp(); btapp.connect(); 

')
Adding a new torrent file:

 btapp.on('add:add', function(add) { add.torrent('http://featuredcontent.utorrent.com/torrents/Kumare-BitTorrent.torrent'); }); 


Print the names of downloaded torrents to the console:
 btapp.on('add:torrent', function(torrent_list) { torrent_list.each(function(torrent) { console.log(torrent.get('properties').get('name')); }); }); 


Among the interesting features, BitTorrent Web , which is still under the status of Coming soon: according to the meager description, it will be able to allow managing torrents via the web without losing the functionality of the dextop client.

The press release of the project can be viewed here .

Site BitTorrent Torque .

Github torque.

Source: https://habr.com/ru/post/147316/


All Articles