Patch API call to change a HLS path causes long pause in output/some clients need restarting - is seamless possible? #3500
Replies: 1 comment
-
Hello, the feature you are looking for is currently unimplemented but is being tracked here: #2214 Unfortunately recent HLS versions got much more complex than the first one, that required just a bunch of files that could be hosted by any HTTP server. Adding files to an existing folder is not enough anymore, as the stream must be coherent in terms of count and kind of published tracks, there must be no gaps between segments and there's also need of blocking endpoints ("preload hints" and "blocking playlists"). Therefore, the only way to solve this issue is to generate a continuous stream on the server-side. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I'm building an application which has a HLS path declared in the mediamtx.yml:
I'm then reading this stream from mediamtx through the web browser at
http://localhost:8888/proxied
. Then my web app calls the api to change the path for what is showing onhttp://localhost:8888/proxied
by doing this:But unfortunately the stream in
http://localhost:8888/proxied
just buffering and stalls and sometimes it eventually picks up but mostly it needs the browser refreshing. If the client is VLC readinghttp://localhost:8888/proxied/index.m3u8
it completely stalls and needs to be restarted. I've tried bothPOST
using replace andPATCH
but its the same issue.This might be expected behaviour for mediamtx but I was hoping to be able to seamless change the HLS path on the fly like this. For example if I run an ffmpeg command to do something similar:
and then quickly kill that process and bring it back it with the updated input:
then any client consuming index.m3u8 - web html5 player or VLC continues seamlessly because its still working its way through the segments - suddenly the feed just changes to the new input stream.
Is there anything I can tweak in mediamtx to make a seamless patch of the HLS path possible?
Beta Was this translation helpful? Give feedback.
All reactions