Textures Minecraft - Pocket Edition - this section is specially created for those who are tired of the standard game graphics in your iOS or Android. Selection is very high and there is something is to choose.
If you’re on Windows 10 and your Wi-Fi is slow or goes on and off from time to time, you’re not alone. Many HP laptop users are reporting this problem as well.
Looks like it's intended behavior of Twitch API.They are definitely more focused on pushing their horsepower to streaming, not immediate data provision through API.While there might be a limitation like this, you can try scrapping the page if timing is crucial and you don't want to wait 3-5 min for something that already happened.One idea is to poll page each 5s or so and then query the HTML document for something characteristic that distinguish offline and online channel. Idea for scrapping in JavaScript (just replicate in.NET):For example, I have tried to query user pages ( username) in JavaScript with: $('.recent-past-broadcast').length 0and for user that is not broadcasting it yields true while for broadcasting user it yields false. Problem might be for user with no recent broadcasts history though.You can try checking videos page ( username/videos/all) for their live indicator too like: $('.cn-livestatuscircle').length 0It will yield true for streaming user and false for the one that does not stream (even if he/she is online).Of course that's least efficient way on doing this and requires lots of download as compared to just polling but. Still it seems more up to date than asking API every 5s and still getting actual state delayed by 3-5min.Just replicate querying like above in.NET and you're there.You could also mix two approaches and if you see that someone started streaming, just disable page scrapping and swap to only API calls for checking if you're up-to-date still. Useful tooling for scrapping:For parsing HTML documents use parsers like AngleSharp to do this in.NET.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |