Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. QMediaPlayer pause/seek/play anomaly (Windows 10/Qt 6.2)
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer pause/seek/play anomaly (Windows 10/Qt 6.2)

Scheduled Pinned Locked Moved Unsolved Qt 6
4 Posts 2 Posters 577 Views 1 Watching
  • 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.
  • N Offline
    N Offline
    NCT275
    wrote on last edited by
    #1

    I've noticed the following sequence of events produces (what seems to me) a surprising result. For example:

    • Load and play a video.
    • Pause (e.g. after 3s)
    • Set position/seek (e.g. back to 1s)
    • Play

    Perhaps mistakenly, I expected Play would start at 1s. Instead it jumps back to 3s and continues from there.

    Though I want it to Play from the seek position, I can't find an obvious way to remedy the situation though I may have missed something obvious in the API spec. So hopefully someone can shed some light.

    BTW: internally I noticed within MFPlayerSession, when event 'MESessionPaused' is handled, the member variable m_position caches the clock time (obtained from time source's GetCorrelatedTime()). This makes sense as 'Play' should again start from m_position.

    However, I would have thought inserting a seek between Pause and Play would change this behaviour as the intent is to seek and Play from a different position.

    Perhaps, when PMFPlayerSession::play() detects 'scrubbing' is turned on, it should update m_position before then calling IMFMediaSession::start()?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The reasoning sounds good to me. I would suggests checking the bug report system to see if there's already something related to that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NCT275
        wrote on last edited by
        #3

        @SGaist, thanks for the link.
        I will keep searching but I can't find anything recent.
        Do I create a new issue if I don't find anything the same (apologies, I'm not a dev so unfamiliar)?

        Thanks again.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Yes please, with a all the details and if possible provide a minimal compilable example so that the developers can get started with the same starting point as you.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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