Forum Discussion

Deepaks3's avatar
Deepaks3
Binge Watcher
5 years ago

timer inside video player during play mode parallelly with playing video

I have an issue with video player playing mode, i want to run timer with while loop inside my video player during video play mode and it should run parallelly with running video display in a UI.

i am really thankful if anyone will suggest any solution for this.

 

Thanks you

1 Reply

  • If you want a literal while loop you'll need to do that in a non-UI thread, so you could use a Task node and start it running when you start video playback. It seems safe-ish to pass a reference to the video object to the task (or at least, that's how Mux works on Roku).

    If you just need some bit of code to run on an interval you can use the "Timer" node.