Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. m3u8 video stream (HLS) does not play well.
Forum Updated to NodeBB v4.3 + New Features

m3u8 video stream (HLS) does not play well.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 387 Views 2 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.
  • M Offline
    M Offline
    Michel de Boer
    wrote on last edited by Michel de Boer
    #1

    I use QML MediaPlayer to play an m3u8 stream (over HLS). It does play, but the first segment stalls and stutters at the start. Only when the next segment starts to play, the stream looks fine.

    This is one of the streams I try to play:
    https://video.bsky.app/watch/did%3Aplc%3Az72i7hdynmk6r22z27h6tvur/bafkreih7qpo7ef7hhtm7ehi7paimlieddrn5argpq4eayz6teez2qbsr7m/playlist.m3u8

    This stream plays in fine in Firefox with a HLS plugin. Also ffplay plays the stream fine. To me it seems that MediaPlayer is not good enough. In the logs I see that it fails to do a seek(0)

    The weird thing is that if I resolve the m3u8 playlist to the actual stream segments and I set the URL of the first segment as resource in MediaPlayer, then that stream plays perfect! This is a nice work around for streams that consist of a single segment, but for multiple segments it does not help as I cannot put multiple URLs in the source.

    Is this a bug in MediaPlayer?
    Or are there some settings I can/should change?

    I see this problem in Qt6.6.3 and in Qt6.7.2

    I have this problem on both Linux and Android.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Michel de Boer
      wrote on last edited by
      #2

      Created https://bugreports.qt.io/browse/QTBUG-128908 for this.

      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