agmark
14 years agoVisitor
Refreshing Images
I'm grabbing some images from a URL and displaying them on a roImageCanvas, but when I grab the updated image with the same url the screen doesn't display the fresh image. All I've seen in the docs is the PurgeCachedImages() method, but I'm not able toget that to work. I'm using the CustomVideoPlayer as the structure of the channel and I'm displaying the images in the following code snippet.
What's the solution to purge the images so new ones will display?
TIA
Mark
m.canvas.AllowUpdates(false)
m.canvas.Clear()
m.canvas.purgecachedimages()
m.canvas.SetLayer(0, [
{ url: "http://my.images.com/image?ID_NOTATION=324977&HEIGHT=75&WIDTH=120&TIME_SPAN=1"
TargetRect: m.layout.image1
'CompositionMode: "Source_Over"
},
more images here etc
What's the solution to purge the images so new ones will display?
TIA
Mark