Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100106

Qml Video::seek() fails with TypeError

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.3.0 Beta1, 6.4.0 Beta1
    • 6.2.2
    • Multimedia
    • None
    • Fedora 35
    • Linux/X11
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            dreua David Auer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes