Interesting... I wonder how much overhead it would take to keep polling like that. I'm not a software or web developer but I like learning things and I'm no stranger to throwing together ugly projects just to see what I can do.
Right now it seems like most of the Hue apps for integration with video work in one of two ways: either sampling color values for what's on screen/what your smartphone's camera is picking up or using companion mobile apps that listen for audio triggers.
The first method tends to result in lots of color changing and it can be distracting in practice. Even if you weight it to be less sensitive, I don't need the lighting to change all the time.
The second method requires you to either edit the audio track to add cues or be involved in the production of the original video. Again, not easy to add after the fact.
Basically I want my "mood lighting" to subtly follow or complement the mood of what's on screen without lots of rapid disco-light changes but I also want the ability to throw in the occasional "punctuation" like bright flashes when there's lightning or an explosion on screen.
I figured a "script" along the lines of a sub track would be a great way to do it since a sub track is already just that: a small file with a script for when to send a string of data to the overlay at certain times. If there was a way to use srt files or the equivalent, you could distribute them easily and load them up in a VLC plugin when you fire up your DVD/Bluray. Probably wouldn't sync up with every pirate rip out there but as long as it worked with the "standard" versions on disc or your home rips with easy editing, it would be a neat project.
Wonder how one would go about writing a plugin for VLC that essentially duplicates the subtitle functionality but sends the data to a server process or other companion app that's listening for lighting values on the fly.