Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="https://cdn.jsdelivr.net/webtorrent/latest/webtorrent.min.js"></script>
- <script>
- jQuery(document).ready(function() {
- var WebTorrent = require('webtorrent')
- var client = new WebTorrent()
- // ZOE AWS Test
- var torrentId = 'magnet:?xt=urn:btih:838c5d9505072327af03b3fa05f43f0a9a07f2c6=****tracker.openwebtorrent.com'
- client.add(torrentId, function (torrent) {
- // Torrents can contain many files. Let's use the first.
- var file = torrent.files[0]
- // Display the file by adding it to the DOM.
- // Supports video, audio, image files, and more!
- file.appendTo('body')
- })});
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement