AudioVideoPlayback - Event Problem

nyquil99

Newcomer
Joined
Jun 20, 2003
Messages
1
I am trying out the Microsoft.DirectX.AudioVideoPlayback.Video object and when the video ends I want the video to restart. Therefore it will be in a continous loop. However I noticed when I set the Audio.Volume property my End event isn't called when the video ends. If I comment out the line the program works correctly. Is this how it is suppose to work? Am I doing something wrong? Or it is a bug?

Code:
ourVideo = new Video("C:\\Windows\\clock.avi");
ourVideo.Ending += new System.EventHandler(this.OnVideoEnding);
ourVideo.Owner = this;
ourVideo.Play();
ourVideo.Audio.Volume = -10000;

private void OnVideoEnding(Object source, System.EventArgs e)
{
i if (ourVideo != null)
{
ourVideo.Stop();
ourVideo.Play();
}
}

Comment out the Audio.Volume = -10000 line and the event gets called; leave it in event doesn't get called.
 
Back
Top