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).