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 upHybrid streaming - http + webtorrent #1386
Comments
This comment has been minimized.
This comment has been minimized.
|
You would have to build a custom solution where you first scrape the trackers for a certain torrent and if there are not enough peers, add HTTP webseed. If you have a 1gbps unlimited bw server, I'd just always include it and let it max out, while rarelimit each connection. |
This comment has been minimized.
This comment has been minimized.
|
I have played with this quite a bit. Use webseed, and do a per connection limit at X speed to conserve bandwidth, if you must, to ensure as many people as possible can start a connection/stream if no other peers are online. You can use iptables on a per connection bases to limit speeds, and or work with a load balancer to better distribute your content. You may also want to look at web seeding your content via a CDN service as well if that's an option. |
This comment has been minimized.
This comment has been minimized.
|
hmmm P.S. Hmm I have found webseed аfunction |
This comment has been minimized.
This comment has been minimized.
|
Hmm as I seed I need example to configure nginx as webseed |
This comment has been minimized.
This comment has been minimized.
|
And one more question |
This comment has been minimized.
This comment has been minimized.
|
@GooG2e this issue may be of interest to you.
An example of this which I quickly threw together can be found here.
A webseed can be added by calling
This may help you regarding setting trackers, look into create-torrent for torrent generation, I don't know any solutions for php unfortunately, maybe somebody else could help on this part?
What do you mean by this?
Yes, peers will start uploading the moment they get a piece allowing any other peer to request this piece even while they are still downloading the file, this is the nature of the bittorrent protocol.
There currently isn't a way to stop seeding, Hope this helps and answers some of your questions! |
This comment has been minimized.
This comment has been minimized.
|
Have webseed priority over usual peers? |
This comment has been minimized.
This comment has been minimized.
|
@GooG2e No, I don't think so. From my testing with 2 complete peers (1 webrtc, 1 webseed) to an instant.io client, the downloads were split evenly, but this was tested on a single machine so latency could cause these rates to change. |
This comment has been minimized.
This comment has been minimized.
|
@SilentBot1 And may be you test webtorrent with some players? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@SilentBot1 tested such example with iOS11. It's support webrtc but very slow(( |
This comment has been minimized.
This comment has been minimized.
|
How can I check that webseed have the lowest priority |
This comment has been minimized.
This comment has been minimized.
|
I'm not sure that is even possible. You can however set a per connection
bandwidth limit to provide enough bandwidth to feed the torrent until there
are other peers to help seed. This would be setup in your webserver or you
could use iptables to rate limit those connections.
…On Mon, May 14, 2018, 6:38 AM GooG2e ***@***.***> wrote:
How can I check that webseed have the lowest priority
For example I want to use it only as starter wehn other peers are exists
or no other peers
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1386 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB--1pCXixW2BWm6TlyGM2_VyCgX07TGks5tyWy8gaJpZM4T8iiI>
.
|
This comment has been minimized.
This comment has been minimized.
|
Closing this since it's not an issue with WebTorrent, but feel free to continue the discussion. |
Hello!
I have a website with some videos (a lot videos - more than 3000).
Usually I stream them via http/https but in peeks I have load more than 1Gbit/s
I want to use webtorrent for hybrid streaming .
For example: user watching video and simultaneously seed it (but receive video from http because no other ways) or user start watching from webtorrent but at some moment - no others seeds and it starts download from htttp
Is there anyway I can do such thing?
As I read I understand that I can't use any clients to simultaneously stream 3000+ videos and I can't totally disable http because webtorrent stream can be not enough
So I want to listen to some advices in this way
Thank you!