Ming_Lei
Active member
I have a problem with Video.SeekCurrentPosition method in DirectX.AudioVideoPlayback namespace. I am writing a program that plays various kind of video and sound, with a track bar that is used to go back and forth in a video or audio file. I therefore used SeekCurrentPosition with flag that is absolute positioning. But the call to the method each time seek to 0 no mather what the value been actually given. What is the problem?
Code:
===============================================
double pos = ((double)trackBar1.Value / 100.0) * video.Duration;
video.SeekCurrentPosition(pos, SeekPositionFlags.AbsolutePositioning);
===============================================
Code:
===============================================
double pos = ((double)trackBar1.Value / 100.0) * video.Duration;
video.SeekCurrentPosition(pos, SeekPositionFlags.AbsolutePositioning);
===============================================