1

I'm working on a media player with custom controls and it actually works perfectly. However the track bar slider which shows the current position in the video doesn't move constantly in a nice move, but, how should I say, lags every second, or so. The timer interval is 100 milliseconds and the maximum value of the track bar is 2000, so that shouldn't be the problem.

I use the fallowing code for the timer:

        try
        {
            if (W.playState == WMPPlayState.wmppsPlaying)
            {
                tr.Value = (int)W.Ctlcontrols.currentPosition;
            }
        }
        catch { }
double-beep
  • 5,031
  • 17
  • 33
  • 41
CCCP
  • 215
  • 3
  • 14

0 Answers0