How to pass some client side parameters to an RTMP pipeline
Hey team I have an RTMP pipeline (which I simplified for the purpose of the question):
Which is served by an TCP server:
This works great, I can initiate an rtmp session using this kind of url for example: rtmp://localhost:5000
Now I'm trying to use url like this: rtmp://localhost:5000?rtmp_id=xxxx or even something like this: rtmp://localhost:5000/xxxx/
So within my pipeline I can get this xxxx and use if for different things (maybe you can think of a filename which could be anice usecase)
So far I don't manage to find how I can get this xxxx within my pipeline, happy to know if there is anotherway to do that ๐ !
Thanks
2 Replies
Actually if that can help people so far I found I can see these informations in the rtmp connect message like this:
Wondering if modifying the message_handler inside the RTMP plugin library like this would make sense:
That way I can get this information from my pipeline (note the addition of the actions)
I made a PR: https://github.com/membraneframework/membrane_rtmp_plugin/pull/57 it might not be the best way to do it, but it solved my issue in my case ๐
GitHub
Send to parent the RTMP connect message by enzoqtvf ยท Pull Request ...
Hey team, this is not really a finished PR but something that I would like to have from this library.
In this PR I'm modifying the message_handler to send the RTMP.Message.Connect to the parent...