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: 
VikR0001
Visitor

Pause/Rewind/Fast-Forward Not Working? [Solved]

For some reason, presses on the pause/rewind/fast-forward keys are not doing anything in my app. 

Here's my onKeyEvent() function:


Function OnkeyEvent(key, press) as Boolean
    print ">>> Details >> OnkeyEvent"
    print key;" (";press;")"
    
    result = false
    if press
      if m.videoPlayer <> invalid AND m.videoPlayer.visible
        if key = "back"
          print "DetailsScreen::back"
          closePlayer()
          result = true
        end if
      end if
     end if
    return result
End Function


The back key works, but pause/rewind/fast-forward do not.  

What am I missing?
0 Kudos
2 REPLIES 2
acreskey
Visitor

Re: Pause/Rewind/Fast-Forward Not Working?

Those keys are being consumed by the Video node which currently has focus?
0 Kudos
VikR0001
Visitor

Re: Pause/Rewind/Fast-Forward Not Working?

Solved-- there was a function that was passing focus to the app buttons for some reason. With focus moved back to the Video node, the pause/rewind/fast-forward buttons are now working again.
0 Kudos