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

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 2
renojim
Community Streaming Expert

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
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
hoffmcs
Visitor

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