Nod Level: Guest

|
Strange MediaPlayer behaviour
I am using the MediaPlayer to record the Duration of a mixture of MP3 and WAV files using a loop containing the following code...
MediaPlayer1.Filename = filename$
duration = MediaPlayer1.Duration
snapshot.WriteLine (duration & filename$)
MediaPlayer1.Filename = ""
At some point, the MediaPlayer begins to report duration = 0 for all files, I have discovered that when this happens, the MediaPlayer.PlayState = 6 I am using VB6 on a W98SE machine. Has anyone got any ideas on what's happening?
|