"drew-man" wrote:
Did you ever figure this out? I'm new to Roku and trying to do the same thing!
Here is a simple slideshow I use. I use a timer to increment the item index every 6 seconds. I usually have a set of thumbnails underneath it that animates on itemFocused with a blurred fullscreen fading background but since I cant upload components and structures I shared a 1 doc component. Also you do need the standard content reader task to render the files.
<?xml version="1.0" encoding="utf-8" ?>
<component name="Slideshow" extends="Scene">
<children>
<Postergrid
id = "postergrid"
translation = "[ 0, 0 ]"
basePosterSize="[1280,720]"
useAtlas="false"
posterDisplayMode="scaleToFit"
itemSpacing="[0,0]"
numColumns="2"
numRows="1"
drawFocusFeedback = "false" />
<Timer
id="testTimer"
repeat="true"
duration="6" />
</children>
<!-- BrightScript Portion -->
<script type="text/brightscript" >
<![CDATA[
function init()
m.top.setFocus(true)
m.testtimer = m.top.findNode("testTimer")
m.testtimer.ObserveField("fire","reanimateit")
m.postergrid = m.top.findNode("postergrid")
m.postergrid.observeField("itemFocused", "setposter")
m.postergridTask = createObject("roSGNode", "ContentReader")
m.postergridTask.contenturi = "http://yourXMLfileHere"
m.postergridTask.observeField("content", "showpostergrid")
m.postergridTask.control = "RUN"
end function
sub showpostergrid()
m.postergrid.content = m.postergridTask.content
m.postergrid.setFocus(true)
animateit()
end sub
sub animateit()
m.item = m.postergrid.itemFocused
m.testtimer.control = "start"
end sub
sub reanimateit()
m.item++
m.postergrid.animateToItem=m.item
end sub
]]>
</script>
<!-- End of BrightScript Portion -->
</component>