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
Since v1.2.1 it is possible to use the MTX_QUERY env variable with hooks like runOnReady, runOnNotReady, etc. It is extremely convenient as this gives the possibility to add some token to query and recognize the stream originator in the API invoked by the hook or pass additional meta in that invocation. But this does not work for the SRT type of stream. The MTX_QUERY is empty for SRT. I believe that this might be so because of security reasons as the query for the SRT might contain login and password.
In my use case, I need to identify the user that initiated the stream in the hook and it would be really helpful if there was a possibility to pass either the query as an MTX_QUERY env var or SRT login.
** Possible solutions **
Add the new optional part for srtNewConnReq that can have the semantics of query and be used as query of pathAccessRequest
Pass the entire srtNewConnReq as the query to pathAccessRequest and env
Add the new env var that reflects credentials where applicable
I would gladly provide a PR for the acceptable solution
Thank you!
The text was updated successfully, but these errors were encountered:
This issue is being automatically closed because it does not follow the issue template.
Please reopen the issue and make sure to include all sections of the template.
This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.
Describe the feature
Problem
Since v1.2.1 it is possible to use the
MTX_QUERY
env variable with hooks like runOnReady, runOnNotReady, etc. It is extremely convenient as this gives the possibility to add some token to query and recognize the stream originator in the API invoked by the hook or pass additional meta in that invocation. But this does not work for the SRT type of stream. TheMTX_QUERY
is empty for SRT. I believe that this might be so because of security reasons as the query for the SRT might contain login and password.In my use case, I need to identify the user that initiated the stream in the hook and it would be really helpful if there was a possibility to pass either the query as an
MTX_QUERY
env var or SRT login.** Possible solutions **
query
ofpathAccessRequest
query
topathAccessRequest
and envI would gladly provide a PR for the acceptable solution
Thank you!
The text was updated successfully, but these errors were encountered: