title: Samsung Smart TV App to use HUE as Ambilight
body: <p>I am trying to accomplish this task: </p>
  
  <ol>
  <li>Running an app on a Samsung Smart TV (in background, kind of)</li>
  <li>This app should check the screen content in an interval and calculate the main color of screen content or the main colors of each border (lets say 20% of width and heigth from border)</li>
  <li>Use the remote accessible api for HUE to control n Philips HUE Lights to accomplish a roomwide ambilight.</li>
  </ol>
  
  <p>Now as I am an android developer and do not have any experience with Smart-TVs I would ask you, if this could be accomplished (or if there is any show stopper) and you have some tips for me, prior to diggin into this very deeply? The actual "How to get startet developing a SmartTV App" will not be the main problem and I am into this right now.</p>
  
  <p>So my actual questions are:</p>
  
  <ol>
  <li><p>What is the best bettern (or is it impossible) to have something like an background job in an Samsung SmartTV? Maybe something like a ticker app with no actual visible overlay or a very small one, would also be a solution?</p></li>
  <li><p>Is there a way to access the currently shown picture on TV, so I get access to the rgb values of the areas/pixels or maybe a screenshot or thumbnail of the screen, no matter what the source of the signal is, as I have to analyze it to get the color.
  Would be great I you could advise me some resources specially to this tasks and give me some advice if this will be working or if there are any limitations or better concepts.</p></li>
  </ol>