m3u8 video stream (HLS) does not play well.
-
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.m3u8This 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.
-
Created https://bugreports.qt.io/browse/QTBUG-128908 for this.