|
-
Jan 10th, 2006, 08:11 AM
#1
Thread Starter
Hyperactive Member
Playing video files each with a duration of 10 seconds
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|