Hi All,
I'm trying to loop through a simple array of movie names and play them in either quicktime or windows media player when I push a button.
I'm using the quicktime component from the toolbox (previously tried with both shockwave and windows media with the same results).
It loops through the array and only plays the last movie.
I figure the only way to do it is to somehow create a play list and play the entire list.
Does anyone know how to do this? Or even another way to get the player to play more than one movie in sequence (seemlessly)?
Any help will be GREATLY appreciated.
Here's the code:
private void startMovies_Click(object sender, System.EventArgs e)
{
String[] aslMovies = {"poser1.mov", "poser2.mov", "poser3.mov", ENDWORD};
int loopcounter = 0;
String moviePath;
for (loopcounter = 0; aslMovies [loopcounter] != ENDWORD; loopcounter = loopcounter + 1)
{
moviePath = Directory.GetCurrentDirectory () + Path.DirectorySeparatorChar + aslMovies[loopcounter];
aslPlayer.SetURL (moviePath);
statusText.Text = "Now Playing: " + moviePath;
}
}
I've been dtruggling with this for days. Anyone out there know what to do???
Thanks,
john...