Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

roImageCanvas weirdness with web images

I'm having some weirdness rendering images from the web into a roImageCanvas. Quite frequently, the image fails to draw which locks up the roImageCanvas and prevents further updates to it until I exit the screen and re-enter. No error is thrown when this happens.

The obvious solution is to call SetRequireAllImagesToDraw(false) on the roImageCanvas before drawing web images into it. This fixes the lockup problem in that the images still do not render, but I can at least proceed with other updates to the roImageCanvas and recover from whatever has gone wrong. But this approach also causes some images to render in the wrong place on the canvas. Always at coordinates (0,0) no matter what position I have specified for them in the content-meta-data.

I have now had this issue with images from 3 different sources. All the images in question render fine in a web browser.
twitter:nowhereman
http://www.thenowhereman.com/roku
http://www.thenowhereman.com/netflix
0 Kudos
2 Replies
Highlighted
Level 13

Re: roImageCanvas weirdness with web images

Something to try might be to use an roUrlTransfer and do a GetToFile() on the image to see if you can get it. If that works, then try to render it from local storage.

-JT
0 Kudos
Highlighted
Level 7

Re: roImageCanvas weirdness with web images

I also had a similar issue with rendering in coordinate 0,0. Patrick told me it was fixed but did not know when the update would be pushed out.
0 Kudos