View Full Version : how to display video at a certain time?

11th November 2011, 11:00
I am new here, recently have posted some questions and got lots of help from here.

Thank you all.

Now I faced a new question again.

I have several video files and I would like to display one and another.

for example, video1 have displayed till 1:32 and stopped playing, and video2 begins from his 1:32, then after video 2 plays till 3:40, then it stopped, video3 begins playing at his 3:40.

Let's assume that these 3 video files have the same length of display time.

so, from QT, I have no idea how to implement this problem.

Thank you for your help :)

17th November 2011, 13:01
I hope someone can answer us, cuz i am looking for something similar.

Could you get the duration of the video in any way?? Because i am creating my video with Phonon::videoWidget and Phonon::AudioOutput, attaching them to a mediaObject, but i can not find any mode to know the duration.

I have found this class : qMediaPlayer


but I haven't tested yet. Maybe you could find any help there.

Also, I had some problems when i try to attach the videoWidget to the mediaObject with the path, I had to update my Qt version to 4.7.4. Be careful with that ;)

And please, i you find a solution, share with me :D