PDA

View Full Version : Video and QSlider



ToddAtWSU
1st May 2006, 15:17
I want to use a QSlider to show the progress of my video playing in my application. First, does anyone know how to determine the number of frames in the video? Secondly, is there an easy way to update the QSlider while the video is playing so the slider will work like the sliders work in common players like WinAmp and Windows Media Player. Thanks for any help you have. I am using DirectShow to render the video.

dimitri
1st May 2006, 18:52
About the number of frames in the video file, this is really not related to Qt, the answer depends on the library used to read and display the video - DirectShow in your case.

Otherwise use QSlider::setValue() (http://doc.trolltech.com/4.1/qabstractslider.html#value-prop).

ToddAtWSU
1st May 2006, 19:37
Okay...so I will probably just call that repetitvely while the video plays. Thanks!