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?
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.
@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?
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.
@RokuBen Thank you. I will try.
Files in the /tmp must be deleted periodically. Or else the memory limit will be reached. Am I right?
Yes, you're correct. You should delete the images from tmp after they're no longer displayed.