Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 11

Tried to disabled option(CC,CC Language and Audio Track) in video player which is provide by Roku

Roku Provided video option by default like the below image.

Audio Track.png

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 - - "

        if (press) 
             if = true and = "buffering" and = "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?


0 Kudos