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. Strange QMediaPlayer::setPosition() on Windows when play from URL
Qt 6.11 is out! See what's new in the release blog

Strange QMediaPlayer::setPosition() on Windows when play from URL

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • nckmN Offline
    nckmN Offline
    nckm
    wrote on last edited by
    #1

    I try to play video file from URL.
    For that i do like this:

    QString fileName = "https://r5---sn-jvhnu5g-gv8l.googlevideo.com/videoplayback?........D4B58C1";
    mediaPlayer.setMedia(QUrl(fileName));
    mediaPlayer.play();

    I use youtube MP4 URL (url gotten using youtube-dl util) . Playback starts normally but some issues on WIndows 8 and WIndows 10:

    1. QMediaPlayer::bufferStatus() is always returns zero
    2. QMediaPlayer::bufferStatusChanged() is never caled
    3. after QMediaPlayer::setPosition() much forward NO LONGER player update frames, just nothing displayed. This is with long videos like 1-2 hours. Not possible to seek forward.

    Interesting is that under Ubuntu Linux same QT app with gstreamer-ffpeg library - all is fine. I can setPosition() i see how bufferStatus() is changing after seek forward from 0% to 100%.. In Linux setPosition() forward is quite fine.

    What to do?

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

      Hi and welcome to devnet,

      That might come from the fact that the Windows backend and Linux backend doesn't use the same technologies.

      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