Where did QMediaPlayer::setNotifyInterval go?
-
For Qt 5 I can find the doc here: https://doc.qt.io/qt-5/qmediaplayer.html
On Qt6 it's not available and the change is not mentioned on this page: https://doc.qt.io/qt-6/qtmultimedia-changes-qt6.html
Is there still a way to do this in Qt6? Thanks in advance.
-
This method is no longer needed in Qt 6.
Is there still a way to do this in Qt6?
So if “this” means to set a notify interval: it’s no longer necessary. The principle is that a property change is propagated when it occurs.
-
Ok, could you elaborate a bit more on the propagation?
In this case the media player emits a "position changed" signal so the UI can respond to that signal and show progress. Without the setNotifyInterval, on a Ubuntu 22.04 machine, that signal is sent around every 10 seconds, which does not hurt the playback, but whatever UI that relies on the signal would look like stuck.
-
Which Qt Version, OS / Version and which media Backend are you using?
-
The
positionChanged
signal is fired with the gstreamer video backend, each time a new playback section has been started. If that is around every 10secs, it means that new sections appear in the video source in this periodicity. More specifically, the signal is linked to the gstreamer message bus, message type GST_MESSAGE_SEGMENT_START.