Auteur Sujet: Twitch extension - English speaking  (Lu 12183 fois)

0 Membres et 1 Invité sur ce sujet

underground78

  • Expert
  • Abonné Free fibre
  • *
  • Messages: 7 436
  • Orsay (91)
    • FreePON : suivi géographique du déploiement fibre EPON chez Free
Twitch extension - English speaking
« Réponse #12 le: 26 avril 2016 à 17:47:44 »
Orange France has globally a good peering and transit quality, but not a totally open one and may still ask other actors to pay in order to interconnect to their network.
Some might say it's a quite optimistic way to put it...

VixinG

  • Abonné FAI autre
  • *
  • Messages: 12
Twitch extension - English speaking
« Réponse #13 le: 26 avril 2016 à 18:10:40 »
Just out of curiosity, can you tell you can't generate or check by yourself the matter of the availability of video content without using a proxy, maybe by engaging multiple non-network heavy parallel requests on the side of your server? I think I will check the issue and the available Twitch available API endpoints in more detail later.

Twitch names their server clusters with IATA, yes.
Twitch has many ingest servers where you send your stream and they all forward it to the main one which is in San Francisco, CA. So no matter where you stream from, it always goes to San Francisco.
Now, when a broadcaster starts his stream, he gets assigned a set of server clusters (for example: san francisco, frankfurt, prague, miami) and a set of server nodes (video12-video20, video36-video50, on each of those servers). When users connect to those servers, those servers pull the data from San Francisco and serve it. It always originates at San Francisco. It's their mother base.
But even if Amsterdam and London, or video2 and video71 aren't assigned to broadcaster, it doesn't mean users can't connect to them.
You can. Using my extension. If user connects to a server/node which is not assigned to the broadcaster, it still works like it is. The server pulls data from San Francisco and serves it to users on this node.
That's why it's potentially disruptive. When that happens, users are using server resources which are not assigned for this task, and may cause the "legitimate" users experience issues.

There is no way of knowing what servers and nodes are available to a broadcaster, unless you connect to Twitch API (Usher) from each location where Twitch has their servers:
Level3, edgecast, san francisco, seattle, san sose, chicago, washington, new york, los angeles, miami, stockholm, london, amsterdam, paris, frankfurt, warsaw, prague, sydney, hong kong, seoul, tokyoTwitch automatically assigns you to the closest available node based on your IP geolocation, so unless you have TOR/Proxy/VPN, there's little you can do.

The way I described (with proxies around the world) is safe for Twitch because it uses their own network balancer.
If a broadcaster has only London and Amsterdam and you query the API from Korea and Washington, you will still get assigned to London and Amsterdam.
« Modifié: 26 avril 2016 à 18:43:34 par VixinG »

VixinG

  • Abonné FAI autre
  • *
  • Messages: 12
Twitch extension - English speaking
« Réponse #14 le: 26 avril 2016 à 21:38:34 »
There was actually a url query called "?cdn=", which you could add to a stream m3u8 link and it would redirect you automatically, and it was a part of Twitch system, so no tampering from my side.
So something like "?cdn=fra01" would redirect you to Frankfurt, no matter where are you from.
I used it myself. I posted a guide on /r/Twitch subreddit how to use Switcheroo Redirector which just added "?cdn",  and it was the simplest mod, fixing all the issues.

The next few days Twitch removed it because of me.
I asked them why it was removed. They said it was deleted because I found out and it could be used to bypass their system (which forces you onto server).
They removed their own implementation of server switching URL query, instead of modifying it to pass through a load balancer or something...
That's when I decided to make the extension.

I care too much when I see a lot of people who have the same issue as me. I know how it is not being able to watch even on Medium, because of Twitch terrible routing and the lack of ability to let us switch servers.

minidou

  • Abonné Orange Fibre
  • *
  • Messages: 403
  • FTTH 1 Gb/s sur Nantes (44)
Twitch extension - English speaking
« Réponse #15 le: 27 avril 2016 à 21:45:44 »
I like Chatty and Livestreamer
any chance you could look at a livestreamer plugin that would allow to choose twitch cluster so I don't have to?

cali

  • Officiel Ukrainian Resilient Data Network
  • Fédération FDN
  • *
  • Messages: 2 401
    • Ukrainian Resilient Data Network
Twitch extension - English speaking
« Réponse #16 le: 27 avril 2016 à 23:22:11 »
I'm from Poland. My ISP is Orange ADSL. I can watch max 3 minutes on Source before it breaks.

Why did you subscribe to orange.pl? Afaik there is no area in Poland where orange.pl is the only available ISP. Poland has far more small regional/metropolitan ISPs than France.

VixinG

  • Abonné FAI autre
  • *
  • Messages: 12
Twitch extension - English speaking
« Réponse #17 le: 27 avril 2016 à 23:35:52 »
Why did you subscribe to orange.pl? Afaik there is no area in Poland where orange.pl is the only available ISP. Poland has far more small regional/metropolitan ISPs than France.
Orange (Neostrada) is the only available ISP in countless amount of places in Poland. I live in a big city and the only ISP I can have in this HOUSE (there are like 4 other for flats in my area) is Orange.
any chance you could look at a livestreamer plugin that would allow to choose twitch cluster so I don't have to?
I don't think that's possible without modifying livestreamer source (which I believe is in Python?) and it would take me a lot of time.

cali

  • Officiel Ukrainian Resilient Data Network
  • Fédération FDN
  • *
  • Messages: 2 401
    • Ukrainian Resilient Data Network
Twitch extension - English speaking
« Réponse #18 le: 27 avril 2016 à 23:42:36 »
Orange (Neostrada) is the only available ISP in countless amount of places in Poland. I live in a big city and the only ISP I can have in this HOUSE (there are like 4 other for flats in my area) is Orange.

You should just ask them to connect you, they may ask you to pay for the connection but that will work. I've done that dozens of time from flats where orange.pl was supposedly the only crap available.

VixinG

  • Abonné FAI autre
  • *
  • Messages: 12
Twitch extension - English speaking
« Réponse #19 le: 28 avril 2016 à 03:01:04 »
You should just ask them to connect you, they may ask you to pay for the connection but that will work. I've done that dozens of time from flats where orange.pl was supposedly the only crap available.
Why people in France, on this forum have a problem with Orange and Twitch?
Twitch just recently opened a new server in Warsaw (waw01) and I have 330 ms ping to it, with download speed 50kb/s. This ISP doesn't make any sense.

cali

  • Officiel Ukrainian Resilient Data Network
  • Fédération FDN
  • *
  • Messages: 2 401
    • Ukrainian Resilient Data Network
Twitch extension - English speaking
« Réponse #20 le: 28 avril 2016 à 11:49:15 »
Why people in France, on this forum have a problem with Orange and Twitch?
Twitch just recently opened a new server in Warsaw (waw01) and I have 330 ms ping to it, with download speed 50kb/s. This ISP doesn't make any sense.

Because orange.pl just as orange.fr refuses to establish interconnections with other networks, that's called a closed peering policy. orange.fr/pl has developed racketeering to make other networks which should normally be interconnected with orange.pl pay for this very interconnection. Fortunately the racket is not working so well so orange.pl is basically not interconnected with anything.

TroniQ89

  • @TroniQ89
  • Abonné Free adsl
  • *
  • Messages: 743
Twitch extension - English speaking
« Réponse #21 le: 02 mai 2016 à 13:10:42 »
Hi

Thank you a lot for your extension.

We have Orange ISP too in France...
Orange.fr and Orange.pl have both problems with Twitch : https://lafibre.info/peering/perring-orangetwitch/

I'm using Free.fr ISP and Free has the same problems...

Paul

  • Abonné Orange Fibre
  • *
  • Messages: 4 270
  • Vannes (56)
    • Twitter
Twitch extension - English speaking
« Réponse #22 le: 02 mai 2016 à 13:33:02 »
I am on Free.fr too. I tested all the available servers, and Amsterdam, Level3 CDN and Chicago seem to be the only ones that work properly.

On the other servers, at best it buffers every 3-10 seconds, at worst the video does not even display (it buffers indefinitely).

TroniQ89

  • @TroniQ89
  • Abonné Free adsl
  • *
  • Messages: 743
Twitch extension - English speaking
« Réponse #23 le: 02 mai 2016 à 18:29:35 »
I am on Free.fr too. I tested all the available servers, and Amsterdam, Level3 CDN and Chicago seem to be the only ones that work properly.

On the other servers, at best it buffers every 3-10 seconds, at worst the video does not even display (it buffers indefinitely).

For me it's Stockholm ;)