I know how to write an external program to emulate the keys of a remote control but is there an API I can use to directly control other app such as positioning it a given stream (AKA show, movie) and start playing?