-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks not working (runOnRead,runOnUnread,runOnRecordSegmentCreate,runOnRecordSegmentComplete) #3372
Comments
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.
In HLS there is no concept of reader and it's not technically possible to count readers, as explained in #962
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 "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 |
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 the
runOnNotReady
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
The text was updated successfully, but these errors were encountered: