Valsylver
26th July 2012, 15:17
Hi,
I display a video using the Phonon module with PyQt, and I created a play/pause button.
The problem is when I want to get the totalTime of the mediaObject() :
Just after setting the source of the video, I can't get the totalTime() of the mediaObject() (it returns 0), it's normal since it is necessary to wait for the totalTimeChanged signal to get this time. But I tried to connect this signal to a custom function, and it never seems to be emitted ... However, when I pause the video, I can get this totalTime(), so I don't understand ...
Do you have a way to fix it ?
Thanks
I display a video using the Phonon module with PyQt, and I created a play/pause button.
The problem is when I want to get the totalTime of the mediaObject() :
Just after setting the source of the video, I can't get the totalTime() of the mediaObject() (it returns 0), it's normal since it is necessary to wait for the totalTimeChanged signal to get this time. But I tried to connect this signal to a custom function, and it never seems to be emitted ... However, when I pause the video, I can get this totalTime(), so I don't understand ...
Do you have a way to fix it ?
Thanks