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. QMediaPlayer::positionChanged(qint64)
Forum Update on Monday, May 27th 2025

QMediaPlayer::positionChanged(qint64)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qsliderqmediaplayerqt5.5.0
5 Posts 3 Posters 4.6k 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.
  • L Offline
    L Offline
    Lorence
    wrote on 13 Dec 2015, 10:20 last edited by Lorence
    #1

    why is this signals only emitted every second?
    is there a signal for qmediaplayer that returns every millisecond or microsecond?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 13 Dec 2015, 14:23 last edited by
      #2

      Hi
      well
      the docs
      http://doc.qt.io/qt-5/qmediaplayercontrol.html#position
      says it only sent when when something happens.

      You could hook up your own timer to your own function and call
      qint64 QMediaPlayerControl::position() const

      L 1 Reply Last reply 18 Dec 2015, 05:01
      0
      • C Offline
        C Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on 13 Dec 2015, 18:45 last edited by
        #3

        You can change the update notification rate of the media object with setNotifyInterval(). 1s is just the default.
        If you're using it for something like ui update make sure you're not going below what most displays can actually handle (~16ms).

        L 1 Reply Last reply 18 Dec 2015, 04:47
        1
        • C Chris Kawa
          13 Dec 2015, 18:45

          You can change the update notification rate of the media object with setNotifyInterval(). 1s is just the default.
          If you're using it for something like ui update make sure you're not going below what most displays can actually handle (~16ms).

          L Offline
          L Offline
          Lorence
          wrote on 18 Dec 2015, 04:47 last edited by Lorence
          #4

          @Chris-Kawa @mrjj
          sorry for the late reply,
          thanks guys it now works using setnotifyinterval() :)

          1 Reply Last reply
          0
          • M mrjj
            13 Dec 2015, 14:23

            Hi
            well
            the docs
            http://doc.qt.io/qt-5/qmediaplayercontrol.html#position
            says it only sent when when something happens.

            You could hook up your own timer to your own function and call
            qint64 QMediaPlayerControl::position() const

            L Offline
            L Offline
            Lorence
            wrote on 18 Dec 2015, 05:01 last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0

            2/5

            13 Dec 2015, 14:23

            • Login

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