BrightSign Object Reference Manual (FW 5.1) User Manual

Page 273

Advertising
background image

265

loop:
msg = Wait(2000,p)
if msg = 0 then goto scan_complete
goto loop

scan_complete:
' Start at the first channel
index = 0
cinfo = CreateObject("roAssociativeArray")
cinfo["ChannelIndex"] = index
desc = c.CreateChannelDescriptor(cinfo)

' Play the first channel
v = CreateObject("roVideoPlayer")
v.PlayFile(desc)

' Rescan the current channel, and update the
desc["ChannelStore"] = MERGE
c.Scan(desc)

Advertising