How to get the full stream URL in the Wowza module?

I am writing a module for the Wowza media server.

How can I get the full stream url in the onPublish() method in my implementation of IMediaStreamActionNotify2 ?

At the moment, I can only find the stream name.

+4
source share
1 answer

You can check the Client object. It contains a method for obtaining a stream URI.

Something like that:.

 @Override public void onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) { IClient client = stream.getClient(); String uri = client.getUri(); // This will print rtmp://127.0.0.1/live in my test server } 

The Client object also contains methods for receiving a query using client.getQueryStr() and other convenient methods, which you can see in the api documentation on the server side.

+3
source

All Articles