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::setPosition(qint64) funny behavior
QtWS25 Last Chance

QMediaPlayer::setPosition(qint64) funny behavior

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmediaplayermac os x
1 Posts 1 Posters 909 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.
  • R Offline
    R Offline
    RegisPower
    wrote on 3 Aug 2016, 14:33 last edited by
    #1

    Hello,

    I am currently writing a program in which I included a video player. I am using Qt5.7 and only Qt modules (QtCharts, QtMultimedia) on Mac OS X 10.11.5.

    In my program, a QMediaPlayer allows me to play a video (in mp4 file format). I can control the position of the video with a QSlider but there are also other methods that can send a new position to the player.

    My problem is the following :
    When I use the "setPosition(qint64)" method of the QMediaPlayer object I created, the position returned by the "position()" afterwards is never the same I wanted initially. Moreover, the new position is really out of sync with the position I inputted (like more than 20 seconds).
    I need the less delay possible between the position I input and the position the player really accepts.
    The only lead I have on my problem is that the video is of bad quality but I do not know much about video properties and I especially do not know which properties can cause this behavior.

    Thank you for your replies.

    1 Reply Last reply
    0

    1/1

    3 Aug 2016, 14:33

    • Login

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