Hello streamers

I want to make a website with video. I can as admin of the site upload new streaming files (WMV), and the users can see them as thumbnails on the site, with the newest on top.

When they click on a clip, i starts playing.

All this I can easily do, but my problem is that I want it to play as a playlist. That means, that when clip no. 1 is finished, clip no. 2 automaticly starts playing, so it gives an automatic flow to the site.

How do i get clip no. 1 to tricker clip no. 2 to start? I use PHP to code the site.

Thanks for reading this!