diff options
Diffstat (limited to 'examples/browser-stream-to-video-or-audio.js')
-rw-r--r-- | examples/browser-stream-to-video-or-audio.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/browser-stream-to-video-or-audio.js b/examples/browser-stream-to-video-or-audio.js deleted file mode 100644 index a1c63f2..0000000 --- a/examples/browser-stream-to-video-or-audio.js +++ /dev/null @@ -1,15 +0,0 @@ -var WebTorrent = require('webtorrent') - -var client = new WebTorrent() -var magnetUri = '...' - -client.add(magnetUri, function (torrent) { - // Got torrent metadata! - console.log('Client is downloading:', torrent.infoHash) - - torrent.files.forEach(function (file) { - // Display the file by appending it to the DOM. Supports video, audio, images, and - // more. Specify a container element (CSS selector or reference to DOM node). - file.appendTo('body') - }) -}) |