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 upHow to set the opts.path in cordova #1599
Closed
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, I'm very interesting in webtorrent.
I have writed torrent client in electron, and I am making ionic cordova app for torrent client.
I implemented webtorrent seed and add function as follows.
client.add(magnetURI, torrent => {})
client.seed(new Blob([new Uint8Array(res)]))
I want to know
Please help me.
Thank you.
If you're using Cordova, do you have access to the user's filesystem?
If so, you can use the same approach as you'd do in Node.js, which is to re-add the torrent with
client.addand make sure to specify the same value foropts.path. Then, WebTorrent will check that file, verify it, and continue downloading from the place it left off.Originally posted by @feross in #1330 (comment)