Roku Provided video option by default like the below image.
I tried with the below code But, I unable to fetch the key event in the Video player.
function onKeyEvent(key as String, press as Boolean) as Boolean
?"Video Player - press - " press "key - " key
?"Video Player - m.video.state - "m.video.state
if (press)
if m.video.visible = true and m.video.state = "buffering" and m.video.state = "playing" then
if (key = "Options")
return true
end if
end if
end if
end function
I also refer to the content-metadata documentation and also check the Playback configuration attributes fields. But no Luck.
Is there any other configuration required for this?