Forum Discussion

chaklasiyanikun's avatar
5 years ago

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.

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?

 

No RepliesBe the first to reply