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 upTrying to build a simple demo, and it doesn't work. With logs and errors. #307
Comments
This comment has been minimized.
This comment has been minimized.
|
Hi, Webtorrent no longer includes the wrtc module, you will have to use webtorrent-hybrid to connect to web peers. As far as I know the path of the file you want to seed, should be a buffer for it to work in the browser. You can convert an array to a buffer like this:
What browser are you using for instant.io? I have problems seeding large files with instant.io. The electron app I'm developing for my website solves the issue of easily seeding multiple videos for me https://github.com/jakefb/fastcast-app. I think this issue is actually related to the code above; loading a large file into the memory can crash the browser. |
This comment has been minimized.
This comment has been minimized.
|
WebTorrent does not condone copyright infringement. Please don't open issues that contain torrent or tracker names. This violates our contributor guidelines. |
Hello, first of all, congratz for the great project.
I would really like to get involved in the project and as so, I'm planning to build a simple page showing off the early features already implemented.
Problems I've faced so far:
webtorrent seed FILE.mp4 log
stream.js (included after webtorrent.min.js)
client-side test
Then I've tried to create a client-side seeder.
seed.js (after including the webtorrent.min.js)
client-side test
Tried to change the path to an single element array, same outcome.
Finally I've tried to use instant.io to seed the file and use my streaming client to test it.
With a file of ~298MB, after choosing it, page goes blank and interaction hangs (seems like a crash)
With a smaller file (~5MB), it does load and I can stream it to other instant.io pages (seed/leech/stream works smoothly).
But when trying to do the same thing with my previous stream code (changing the magnet link to magnet:?xt=urn:btih:1d33ce4f186e79894aa615b511dc7af0d1de55b3 - the one stated in instant.io), I get the following:
So, everything seems to work, but nothing really happens. Nothing is appended to body, no errors, nothing.
There is probably something missing within my approach to get this work and I thank you in advance for any guidelines.
Hoping to make this grow and get to a point where it becomes a standard for major bittorrent clients.
Best regards