DispatcherTimer is what you want. In this case, you must create a DispatcherTimer with an interval of 15 seconds to start the first video. Then, when this video is completed, turn on the timer and in the checkmark event, show the next video, and set the timer to off so that it does not work every 15 seconds. DispatcherTimer lives in the System.Windows.Threading namespace.
DispatcherTimer yourTimer = new DispatcherTimer();
yourTimer.Interval = new TimeSpan(0, 0, 15);
yourTimer.Tick += new EventHandler(yourTimer_Tick);
firstVideo.Show();
Assuming you have an event when the video is complete, set
yourTimer.Enabled = True;
and then in yourTimer.Tick event handler
private void yourTimer_Tick(object sender, EventArgs e)
{
yourTimer.Enabled = False;
nextVideo.Show();
}
source
share