I want to make an Android TV app which behaves like traditional TV, when the up and down button on a remote control is pressed, TV channel is switched. I have mapped the onKeyDown listener. However, everytime I press a button, "playback control glue" shows up. I need to press the button again to trigger the listen so as to switch channel.
Playback Control Glue: https://developer.android.com/training/tv/playback/transport-controls
Is there any way to disable the control glue" from showing up? Since my app plays live streams, I don't want user to pause the video, and seeking is not possible.
And also, how could the listen get the keydown event immediately without going through the "control glue"?
Thanks.
P.S. I am not familiar with Android development. I am modifying the TV sample code in Kotlin.