views:

63

answers:

1

EndOfStream event doesnt seem to be working. I put a msgbox in the event and it wont come up once the CurrentMedia has played.

I need to track when the media player has finished playing a video. Someone help!

A: 

If you use a process to play the video, you can determine when the media player has exited like this:

Dim proc As Process

proc = Process.Start(videoFileName)
proc.WaitForExit()
xpda