I am using a url (with parameters) to request live rtp streams: rtmp://IP/rtplive/live.sdp?param1=val1¶m2=val2.
In the onConnect I can use the client.getUri() to get the basic application part, but I did not find how can I get the rest of the URL.
I did find that if implementing the play method I can use the params.get(PARAM1) to get the information, but I prefer to do it in the onConnect (the parameters are use for authentication and I want to reject the connection in the onConnect).
Actually these parameters are more likely attached to the stream and not the connection. So the only way to intercept them is in the play command. So you need to do something like: