You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the work you've done with the player!
My situation: I have a HLS stream with short fragments of a second each. There can be a slight delay between them. This causes the picture to be interrupted and not play correctly. Also there are no timestamps. Can I manually accumulate information or sew fragments and only then playback?
How this situation was solved in C++ with the same thread:
We have a buffer made for 10 frames and we playback from it.
In parallel, we calculate the broadcast fps, which determines the speed of reading from the buffer, so that it does not empty.
Is it possible to do something like this on the frontend? Accumulate *.ts fragments or something else?
Thanks!
What have you tried so far?
No response
The text was updated successfully, but these errors were encountered:
You'd need to rewrite the remuxer significantly to do this (and probably demuxer as well as it expects contiguous segments when not marked otherwise) as it sounds like you're not serving valid HLS. Have you considered putting DISCONTINUITY and/or GAP tags between segments in your HLS playlist to accurately describe the program?
Unfortunately, I can't change hls stream on server, have to change playback on frontend. Can I
achieve "DISCONTINUITY and/or GAP tags" behavior with custom loader? Or maybe I can merge fragments in loader and then play it? It doesn't matter if there will be latency for 1-2 seconds btw. Appreciate any help!
GAP tags prevent a segment from loading. HLS.js will look for an alternative segment in another variant/rendition without a gap or seek over it if none are found. You probably don't want either. Fragments to ignore have a gap property whose value is true.
DISCONTINUITY tags between segments (EXTINF) are essential when timestamps are not contiguous. The discontinuity sequence number for a segment is expresses as Fragment.cc in HLS.js. In theory, you could modify the cc values in LevelDetails.fragments on LEVEL_UPDATE to add discontinuities.
What do you want to do with Hls.js?
Hi, thanks for the work you've done with the player!
My situation: I have a HLS stream with short fragments of a second each. There can be a slight delay between them. This causes the picture to be interrupted and not play correctly. Also there are no timestamps. Can I manually accumulate information or sew fragments and only then playback?
How this situation was solved in C++ with the same thread:
We have a buffer made for 10 frames and we playback from it.
In parallel, we calculate the broadcast fps, which determines the speed of reading from the buffer, so that it does not empty.
Is it possible to do something like this on the frontend? Accumulate *.ts fragments or something else?
Thanks!
What have you tried so far?
No response
The text was updated successfully, but these errors were encountered: