Forum Discussion

viktoriia_dev's avatar
viktoriia_dev
Channel Surfer
2 years ago

How to update the Poster image 30 times per second?

I need to update the Poster image 30 times per second.
Images are being served by the local server running on my iOS device.
I tried to use the Timer node to set the Poster uri.
The GET requests are sent to my server but images are not displayed in the Poster component.
If I increase the Timer duration to 0.5 seconds, images are displayed, but I need the Timer duration to be 0.03 seconds.


How can I accomplish this task?

5 Replies

  • RokuBen's avatar
    RokuBen
    Community Moderator

    I don't think you'll be able to do handle downloading an image and decoding it at that speed.  The image decoder is asynchronous on Roku OS, so when you provide the URL to the poster, it may take a frame or two for it to download and show in the poster.

    • viktoriia_dev's avatar
      viktoriia_dev
      Channel Surfer

      RokuBen Thank you very much for your response.

      What about downloading the image to the tmp:/ directory using the Task node and then providing URL to the poster? Is it possible?

      • RokuBen's avatar
        RokuBen
        Community Moderator

        You can try this -- if you're loading a poster from /tmp, you can use the loadSync flag on Poster to have it decode immediately.