I wish I had the skills to do that... not happening
I hope somebody does it.. in fact here's a chinese ambilight that works that way with Android TVs, it has an app that does just that. The app sadly is not available neither for Samsung nor LG though..