Hello

I'm curious if anyone has any experience in creating a 4K player system that will allow the OTT M8 tv box to be controlled with an android tablet?

We have a trade show that we need to set up for Ultimately what we would like to accomplish is this:
Connect an android tablet to the USB port on the m8
Plug the M8 box into the wall
M8 Automatically powers on
M8 automatically plays a video stored on a USB Flash Drive that will constantly loop.
We have an app on the Android Tablet that will send a serial command when buttons are pressed on the screen
Press button 1 the m8 will play video #1 stored on the USB Flash Drive (when this video is done it will go back to the looping video)

Are there any source codes that anyone is aware of of that could allow something like this? I'm not sure where to start as far as the M8 player box is concerned.