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

video screen events while paused

Hi,

Is there anyway to continue to receive and process video screen events while playback is paused?

Or, from a functional point of view, I need to send a 'ping' request to a server to say 'hi, still here' to avoid the server session timing out and killing itself. Any way I can achieve this while a video screen is paused?

thanks
Jonny
0 Kudos
2 REPLIES 2
RokuChris
Roku Employee
Roku Employee

Re: video screen events while paused

roVideoScreen doesn't generate any events while paused. If there's stuff you need to do periodically within an event loop, you can pass a non-zero value to the Wait() function (section 7.2 of the BrightScript Reference Manual), which will cause it to timeout and return an invalid value.
0 Kudos
jwray
Visitor

Re: video screen events while paused

Thanks, appreciate the pointer, worked a charm.

Jonny
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.