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

Qml Video::seek() fails with TypeError

    XMLWordPrintable

    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:
      Linux/X11
    • 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

        Attachments

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

          Activity

            People

            Assignee:
            laknoll Lars Knoll
            Reporter:
            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