bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
12.43k stars 1.54k forks source link

Make MTX_QUERY from WHIP request URL available in runOnReady hook #3937

Open dmitritz opened 2 weeks ago

dmitritz commented 2 weeks ago

Describe the feature

The documentation on runOnReady hook https://github.com/bluenviron/mediamtx/blob/main/README.md#hooks specifies that the MTX_QUERY should be available:

# * MTX_QUERY: query parameters (passed by publisher)

But they are not for a WHIP stream. Shouldn't they be passed from the initial WHIP session initiation request? Because this is how a producer can communicate any meta-information about a stream. Proposition: get the query parameters from a WHIP request URL and store them as the producer's query parameters accessible in the hooks