All,
I am attempting to use the "roSlideShow" object and it appears to be broken if I make the overlay visible.
It displays the first picture, but never changes. I can manually change it using the arrow keys on the remote. If I disable the overlay it operates normally. Additionally, the "isPlaybackPosition" message is generated constantly at a rate of about 10 per second with an index of the current picture.
FUNCTION Main() AS VOID
port = CreateObject("roMessagePort")
ui = CreateObject("roSlideShow")
ui.SetMessagePort(port)
ui.SetContentList([
{
url: "http://www.rkeene.org/tmp/image0.jpg"
TextOverlayBody: "BODY0"
TextOverlayUL: "UL0"
TextOverlayUR: "UR0"
}, {
url: "http://www.rkeene.org/tmp/image1.jpg"
TextOverlayBody: "BODY1"
TextOverlayUL: "UL1"
TextOverlayUR: "UR1"
}, {
url: "http://www.rkeene.org/tmp/image2.jpg"
TextOverlayBody: "BODY2"
TextOverlayUL: "UL2"
TextOverlayUR: "UR2"
}
])
ui.SetTextOverlayIsVisible(true)
ui.SetPeriod(10)
ui.Show()
WHILE true
msg = WAIT(0, port)
IF msg.isScreenClosed() THEN
RETURN
END IF
IF msg.isPlaybackPosition() THEN
PRINT "Got isPlaybackPosition message for "; msg.GetIndex()
END IF
END WHILE
END FUNCTION
The output is:
------ Running ------
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
Got isPlaybackPosition message for 0
for about 1 second of runtime.
Is there some way to work around this bug ?