Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upget "invalid torrent indetifier" when using torrent as buffer #1661
Comments
This comment has been minimized.
This comment has been minimized.
|
Can you post the torrent identifier you are using? Can you also post the details of the error thrown (such as the trace)? By the way, based only on the code you have posted, no video is expected to appear (unless you add it to the DOM by, for example, calling |
This comment has been minimized.
This comment has been minimized.
by the way, i am using a torrent buffer exported from search-torrent-api. i got this error only when i am using torrent buffer, torrent files are working |
This comment has been minimized.
This comment has been minimized.
|
Can someone give an example of downloadTorrent feature? That I will understand how it work |
This comment has been minimized.
This comment has been minimized.
|
Hi @Naor1Levi Without an example of the buffer returned from Note: if you do provide a buffer, ensure it's not of copyrighted content. Kind regards |

webTorrent version: the new (just downloaded)
i am using webtorrent in java script (front end)
browser: chrome/firefox (both dont work)
client.add(torrentId, function (torrent) { // Torrents can contain many files. Let's use the .mp4 file var file = torrent.files.find(function (file) { if (file.name.endsWith('.mp4')){ console.log('success finding .mp4'); return file.name.endsWith('.mp4') } })expected result: the player will appear with the video
actual results: got an error