you will have to integrate this with your video playback function, for example, set up your roScreen or roImageCanvas, create your event timers, set the video to play in a window, assign the video component's message port to the same port that the screen uses, and initiate playback, then start your while loop. Within the while loop you will listen for messages from the video player and screen, but you won't use the wait function:
video.play()
timer1.mark()
timer2.mark()
timer3.mark()
while true
msg=port.getmessage()
if type(msg)="rovideoPlayerEvent" then
(handle video player events)
else if type(msg)="roImageCanvasEvent" then
(handle image canvas events)
end if
if timer1.totalseconds() > 5 then
function1()
timer1.mark()
end if
if timer2.totalseconds() > 3 then
function2()
timer2.mark()
end if
if timer3.totalseconds() >6 then
function3()
timer3.mark()
end if
end while