QML Video onPositionChanged raises to rarely
-
Hi Guys,
I noticed that the onPositionChanged event of QML video element raises only round about one time per second. Is there any possibility to do this much ofter, maybe by using an other event or a workaround?
The ideal solution for me would be to have a event that raises with every new frame.
Thanks
Eddi0406
-
I found a simple solution: integration of a simple timer, that raises every 50ms. Maybe this helps someone in the future.
-
Video element has a property notifyInterval which determines how often the events should be trigerred. Default value is set to 1000 milliseconds.
Refer:
https://doc.qt.io/qt-5/qml-qtmultimedia-video.html#notifyInterval-propKudos