I need to play a series of videos one after the other in AM, which is easy to do...except that the order in which the videos play needs to be random.
So I've created a sub with all the required code to randomly choose what videos to play and in what order. The problem is, predictably, that - when I call the sub - only the last video in the sub plays, because the code doesn't pause until each video completes.
So my question is, would there be a way of checking if a video is playing using VBScript? That way I can do something such as this:
PlayVideo "video1.avi"
While Video 1 is playing, wait/loop
PlayVideo "video2.avi"
Video 2 will not begin until Video 1 ends.
As an alternative to this, is there a way of pausing the code for a set number of seconds? That way, I can do this:
PlayVideo "video1.avi"
Pause for the length of video 1
PlayVideo "video2.avi"
Either would work for me. I'm hoping someone here can help me. Thanks in advance, everyone!
