Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.2
-
None
-
Fedora 35
-
-
cb90823b7c (qt/qtmultimedia/dev) cc0b797042 (qt/qtmultimedia/6.3) 83df31233f (qt/qtmultimedia/6.2) 83df31233f (qt/tqtc-qtmultimedia/6.2)
Description
Attempting to use seek on a QML Video fails with the following error:
qrc:/qt-project.org/imports/QtMultimedia/Video.qml:389: TypeError: Property 'seek' of object QMediaPlayer(0x562903b7b100) is not a function
Here is the documentation of the seek function I want to use:
https://doc.qt.io/qt-6/qml-qtmultimedia-video.html#seek-method
It looks like MediaPlayer's seek function has been removed in Qt 6 and the position property could be used instead:
https://doc.qt.io/qt-5/qml-qtmultimedia-mediaplayer.html#seek-method
https://doc.qt.io/qt-6/qml-qtmultimedia-mediaplayer.html#position-prop