i tried finding out, couldn't. following steps here — https://webtorrent.io/intro. have following code in file.
<html> <head> <title> streamtest </title> <script type="text/javascript" src="webtorrent.min.js"></script> <script> var client = new webtorrent() var torrentid = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d' client.add(torrentid, function (torrent) { // torrents can contain many files. let's use first. var file = torrent.files[0] // display file adding dom. supports video, audio, image, etc. files file.appendto('body') }) </script> </head> <body> <h2>torrent stream test</h2> </body> </html>
this code works fine infohash — 6a9759bffd5c0af65319979fb7832189f4f3c35d when use other info hash or magnet link, doesn't work. example of other info hash 80096c11147eee4d2b6b6ac0b96c951e48298be3
any idea, why doesn't work other infohash or magnet link?
Comments
Post a Comment