gerberface / streambadge

Embed and Share Your Live Streaming Status
28 stars 13 forks source link

Sorting Streams by Online Status? #2

Open Xaoh opened 11 years ago

Xaoh commented 11 years ago

I use the StreamBadge for our community website. We have a gaming community that is made up of mostly streamers and I was wondering if there is a way that I can have whoever comes online be automatically sorted to the top of the list of our streamers.

Im not sure how to accomplish this and this isn't technically an "issue" but I couldn't find another place to ask my question.

Ruination.co is the website so you can see what I am talking about, when one of our streamers goes live their location is static based on the html code I have inserted, if it is possible to sort my streamers by online and offline status this would be amazing.

Thank you very much.

svinkle commented 11 years ago

Interesting thought, but like you said, location is static based. There's no way to do this at this point. It would have to be some sort of "group" request to the service. I'll make a note of this as a feature request.

VaughnWhiskey commented 11 years ago

Couldn't you do it through Twitch.tv Team Page?[ EX: http://www.twitch.tv/team/8bitmassacre ] but the group would have to have a team page through twitch...so that might not work for most people.

Xaoh commented 11 years ago

I thought about that Vaughn but im not sure if the StreamBadge works for a big group. I haven't tried it yet I might play with it a little soon in between work.

svinkle commented 11 years ago

The Twitch teams request object doesn't return anything useful. For example: https://api.twitch.tv/kraken/teams/8bitmassacre

I would have thought there would be a listing of members, but no dice.

Streambadge is set up to handle individual users/streams only. I'd have to write something completely new to handle this sort of thing, which I don't have the time for at the moment. That being said, this is an open-source project so if anyone wants to take this on, I'm open to code submissions via GitHub.

laurencee commented 11 years ago

You can pass in a group of channels to the twitch api: https://api.twitch.tv/kraken/streams?channel=riotgames,voyboy,ongamenet