Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 6.2.2
-
Fix Version/s: 6.3.0 Beta1, 6.4.0 Beta1
-
Component/s: Multimedia
-
Labels:None
-
Environment:Fedora 35
-
Platform/s:
-
Commits: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