David Leggett (TheLeggett)

dev

Evening project: GamerChannels.com

Most normal people I know have at least one sport they try and keep up with. Could be Football, Tennis, or maybe even something like competitive Poker.

Myself? I’m a fan of competitive video games. Starcraft, specifically.

It’s a geeky choice for evening entertainment, but I’m definitely not alone in my programming selection. Over 60,000 people tuned in from all over the world this past weekend to watch a live tournament in Spain called DreamHack. Some events see even more attention than this—and the winners often take home prizes in the tens (or hundreds) of thousands of dollars.

A lot of the individuals who “cast” live video streams use live video streaming service Justin.tv. JTV is great, but I find it a little difficult to navigate my way around the site, or watch video on my tablet. Thankfully, JTV has put together an API that has allowed me to create my own customized stream browser :)

I spent some time last night putting together a basic video browser with the API that tracks some of my favorite streams. I don’t currently have any plans for it, but I’m hosting the app at GamerChannels.com for the time being.

With how much momentum I’ve seen competitive gaming gain in the past 2 years, who knows… I may invest some more time into this project so it will be more useful for others.

Justin.tv Error #2048

Just spent the past 2 hours troubleshooting a problem I was having with the Justin.tv API. Thought I’d save a few headaches for anyone else who runs into this problem and post about it.

I was having no trouble getting the API to do the things I wanted, but the Embed code for streams seemed to be borked.

I kept getting: “Something went wrong: Error #2048″

Did some digging and wasn’t able to find any error code documentation. I couldn’t even get embed codes working directly from channels.

Turns out that for whatever reason, Justin.tv doesn’t like “localhost”. That’s a pretty strange quirk… not sure if it’s intentional or not (haven’t seen any mention of it in the API documentation). I added a new host “test.local” and was immediately able to see the embed codes working.

Guide for setting up custom hosts on Mac →
…and on Windows →