Hey guys, I have a problem that I'm finding it hard to locate material on. What I have to do is play some video files one afte the other and keep repeating this indefinitely or until the application is closed off. Each video file is to be played for exactly 20 seconds, so if the file is too long piece will not play and if the file is too short it must repeat for 20 seconds. Now I got the first half of the problem in that I got the video files to play in a playlist and repeat. I added a window media control and my code looks like:

// Add items to the playlist.
wmpPlayer.currentPlaylist.appendItem(wmpPlayer.newMedia (@"file.mpeg"));
wmpPlayer.currentPlaylist.appendItem(wmpPlayer.newMedia (@"pic1.jpg"));

wmpPlayer.settings.autoStart = true; // Set this option so it will start auto - not working.

wmpPlayer.settings.setMode("loop", true); // Loop indefinitely.



Does anyone knows how I could play these two files for an exact duration of time? any help will be greately appreciated.

And happy new year to everyone. I was on holidays for a while but I'm back - Jennifer