to my knowledge, the is no ttype for moving to the "Next display", so I came up with this little snippet of code that should have allowed me to trigger the next display after a video is done playing:
function code ()
{
local staticv = fe.add_image("ui/static.avi",0,0,1920,1080)
staticv.video_flags=Vid.NoLoop
if (staticv.video_time==staticv.video_duration)
{
fe.signal("next_display")
staticv.visible=false
}
}
according to the attract mode programming reference, video_time is the current point at which the video is at (in milliseconds), and video_duration is how long the video is in total (in milliseconds).
so why does this not work, and how could I fix it?