Search code examples
androidiosrokubrightscript

How to disable options button functionality when video playing in bright script


I am working on roku using Scene Graph. I want disable options(asterisk) button functionality when video playing. Thank you.


Solution

  • According to the documentations the video player will ALWAYS have the options button functionality when in full screen,

    "The one exception is the closed-caption dialog, which always appears when the video is playing fullscreen."

    from: https://sdkdocs.roku.com/display/sdkdoc/Video

    What I did is actually set the video to be 1px less than full screen (e,g 1280 x 719), and then I was able to capture and override the options key functionality. It might be possible to add a 1px transparent rectangle on the video instead.