Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Where did QMediaPlayer::setNotifyInterval go?

Where did QMediaPlayer::setNotifyInterval go?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 774 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kevinzien
    wrote on last edited by
    #1

    For Qt 5 I can find the doc here: https://doc.qt.io/qt-5/qmediaplayer.html

    On Qt6 it's not available and the change is not mentioned on this page: https://doc.qt.io/qt-6/qtmultimedia-changes-qt6.html

    Is there still a way to do this in Qt6? Thanks in advance.

    1 Reply Last reply
    1
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      This method is no longer needed in Qt 6.

      Is there still a way to do this in Qt6?

      So if “this” means to set a notify interval: it’s no longer necessary. The principle is that a property change is propagated when it occurs.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      1
      • K Offline
        K Offline
        kevinzien
        wrote on last edited by
        #3

        Ok, could you elaborate a bit more on the propagation?

        In this case the media player emits a "position changed" signal so the UI can respond to that signal and show progress. Without the setNotifyInterval, on a Ubuntu 22.04 machine, that signal is sent around every 10 seconds, which does not hurt the playback, but whatever UI that relies on the signal would look like stuck.

        1 Reply Last reply
        0
        • Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          Which Qt Version, OS / Version and which media Backend are you using?

          Software Engineer
          The Qt Company, Oslo

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kevinzien
            wrote on last edited by kevinzien
            #5
            • Desktop_Qt_6_3_1_GCC_64bit
            • Ubuntu 22.04 amd64
            • Media backend: gstreamer
            1 Reply Last reply
            0
            • Axel SpoerlA Offline
              Axel SpoerlA Offline
              Axel Spoerl
              Moderators
              wrote on last edited by
              #6

              The positionChanged signal is fired with the gstreamer video backend, each time a new playback section has been started. If that is around every 10secs, it means that new sections appear in the video source in this periodicity. More specifically, the signal is linked to the gstreamer message bus, message type GST_MESSAGE_SEGMENT_START.

              Software Engineer
              The Qt Company, Oslo

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved