Closed Byorun closed 1 week ago
Yep not working for me either
It's been a month without this pretty important feature. Does this mean it's not supported anymore, is this lib being abandonded? It's a deal breaker I think...., because the auth call for "ready" is not usable since it calls the url all the time while using LL-HLS....
All problems reported in this issue are not bugs but misunderstandings about how the server works.
runOnRead : no execution, no logs even on debug (I am trying to capture the current viewer count with that) runOnUnread: no execution, no logs even on debug (I am trying to capture the current viewer count with that)
In HLS there is no concept of reader and it's not technically possible to count readers, as explained in #962
runOnRecordSegmentCreate: [path livestream/byorun] runOnRecordSegmentCreate command launched in logs but the script is not executed runOnRecordSegmentComplete: [path livestream/byorun] runOnRecordSegmentComplete command launched in logs but the script is not executed
you wrote "segement" instead of "segment" in the script name. It's impossible to assert for certainty if this solve your issue since you didn't attach server logs or configuration.
the auth call for "ready" is not usable since it calls the url all the time while using LL-HLS....
The "read" auth call (not the "ready" one which doesn't exist) is called for each HLS request if and only if you configure the server with external HTTP authentication. There are alternative ways to handle authentication, from JWTs to reverse proxies. The JWT method is described in the README.
Would be great to have an auth call on client connect, the "read" can bloat the server
Would be great to have an auth call on client connect, the "read" can bloat the server
as written in the previous post, there is not concept of "client" in HLS. BTW you're completely off topic here, so i'm forced to lock the issue.
Which version are you using?
v1.8.1
Which operating system are you using?
Describe the issue
I am trying to use several hooks in order to automate/track some things of the stream, but several hooks won't get triggered. Only
runOnReady
andrunOnNotReady
are working[path livestream/byorun] runOnRecordSegmentCreate command launched
in logs but the script is not executed[path livestream/byorun] runOnRecordSegmentComplete command launched
in logs but the script is not executedAll scripts are basically the same, only the final webhook url changes
If I start a stream the
runOnReady
hook is triggered (which can be confirmed by the mediamtx log and and the webserver log) If I stop a stream therunOnNotReady
hook is triggered (which can be confirmed by the mediamtx log and and the webserver log) The rest does nothing.Describe how to replicate the issue
I disabled read and playback auth calls due to heavy server load due to too many auth post requests in case of LL-HLS streams
Did you attach the server logs?
no useful output even on log level debug other than the two lines mentioned above
Did you attach a network dump?
no