QMediaPlayer::positionChanged(qint64)
-
wrote on 13 Dec 2015, 10:20 last edited by Lorence
why is this signals only emitted every second?
is there a signal for qmediaplayer that returns every millisecond or microsecond? -
Hi
well
the docs
http://doc.qt.io/qt-5/qmediaplayercontrol.html#position
says it only sent when when something happens.You could hook up your own timer to your own function and call
qint64 QMediaPlayerControl::position() const -
You can change the update notification rate of the media object with setNotifyInterval(). 1s is just the default.
If you're using it for something like ui update make sure you're not going below what most displays can actually handle (~16ms). -
You can change the update notification rate of the media object with setNotifyInterval(). 1s is just the default.
If you're using it for something like ui update make sure you're not going below what most displays can actually handle (~16ms).wrote on 18 Dec 2015, 04:47 last edited by Lorence@Chris-Kawa @mrjj
sorry for the late reply,
thanks guys it now works using setnotifyinterval() :) -
Hi
well
the docs
http://doc.qt.io/qt-5/qmediaplayercontrol.html#position
says it only sent when when something happens.You could hook up your own timer to your own function and call
qint64 QMediaPlayerControl::position() constwrote on 18 Dec 2015, 05:01 last edited byThis post is deleted!
2/5