Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chaklasiyanikun
Roku Guru

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.