|
可以正常播放,但是进度条就是不动,采用的WM_Timer来更新的,检测了一下,是可以响应OnTimer的,不知为何进度条就是不前进,有做过的人给些提示吧.多谢了
void VideoDlg::OnTimer(UINT nIDEvent)
{
if (nIDEvent == mSliderTimer && mFilterGraph)
{
double pos=0;
mFilterGraph->GetCurrentPosition(&pos);
int newPos=int(pos*1000/m_VideoTime[m_PlayItem]);
if (m_VideoSlider.GetPos() != newPos)
{
m_VideoSliderValue=newPos;
m_VideoSlider.UpdateData(FALSE);
}
}
CDialog::OnTimer(nIDEvent);
}
|
|