ANDROID TV DPAD ISSUE KOTLIN

Job ID: 33037507

Budget: £10 – £20 GBP

I think we need to overide the keys on the remote KOTLIN exoplayer will only allow for the center button to work
and will not allow left or right to select forward or backwards
this is the code we have
override fun dispatchKeyEvent(event: KeyEvent?): Boolean {
if (event != null) {
playerView!!.dispatchKeyEvent(event)
}
return true
}

override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
when (keyCode) {
KeyEvent.KEYCODE_DPAD_RIGHT-> {
if (playerView?.isControllerFullyVisible == false) {
playerView?.showController()
}
return true
}
}
return super.onKeyDown(keyCode, event)
}