Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chaklasiyanikun
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 - 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?

 

0 Kudos