API access to AndroidTV for changing channels

by studiox_swe

So my Cable provider got my a free AndroidTV box (technicolor) running Android TV 7.1.1 in replacement to my Tivo Box.

I loved the Tivo as it had an unofficial API that I could use to change channels (wrote an HTML5 app to do that, including a EPG)

​

How I really like to do the same with Android TV but have for the sake of it not found a single documented way to do that, I assume it exists as you can (I guess, haven't tried) let Alexa, Siri or other 3PP change channels by using your voice?

​

I'm also really, really interested if there is a way to send a multicast stream from an Android TV box? I know this unit can receive multicast (As my cable provider is offering IPTV services with FTTH) - I'm running my own multicast encoder to record programs (as the box cant do that) and would be interested in sending the multicast directly from the AndroidTV box.

​

Thanks (This is my first post here so let me know if this is appropriate)

WasedaWalker

have you tried using ADB to insert key events?

adb shell input keyevent

KEYCODE_CHANNEL_DOWN and KEYCODE_CHANNEL_UP

​

No way to send a multicast stream out from the box unless your provider intended for that.