I used to have an app on my old phone that did the same thing, but new phones don't seem to have IR transmitters.