In my main.brs, I create a roSlideShow, and as soon as I try adding content to it, my Roku crashes and reboots by itself:
screen = CreateObject("roSlideShow")
port = CreateObject("roMessagePort")
screen.SetMessagePort(port)
screen.SetLoop(true)
screen.SetDisplayMode("scale-to-fit")
screen.SetPeriod(8)
photos = ...
? " DBG10"
'screen.SetContentList(photos) ' this also crashes my Roku
photo = photos[0]
print photo
screen.AddContent(photo)
? " DBG11"
screen.Show()
? " DBG12"
Both SetContentList and AddContent results in the same crash.
Output on telnet port 8085:
DBG10
<Component: roSGNode> =
{
metadata: <Component: roContentMetadata>
change: <Component: roAssociativeArray>
focusable: false
focusedChild: <Component: roInvalid>
id: 6238283290189590194
CATEGORIES: <Component: roArray>
HDPOSTERURL: https://lh3.googleusercontent.com/.../IMG_9178.JPG
SHORTDESCRIPTIONLINE1: IMG_9178.JPG
SHORTDESCRIPTIONLINE2: 2016/1/10 12:5
TITLE: IMG_9178.JPG
URL: https://lh3.googleusercontent.com/.../IMG_9178.JPG
}
Connection closed by foreign host.
Any idea..?