Wowza Community

HTTP URL Request on RTSP teardown

Hi,

can anyone please help me with a sample code snippet to invoke a http url whenever any of RTSP methods such as onPlay(), onPause(), onDescribe(), onAnounce(), onOptions() and onteardown() is triggered ? I want to invoke a URL over http and want to receive its response. Based on the response, i want to control the session. How to achieve this ? Please help me in this regard.

Thanks in advance.

Hi,

The HTTPUtils class contains methods that can be used to construct HTTP queries. It’s described in the Server Side API. Or you could construct your own URL. A search of the forums for HTTPRequestToByteArray or URLConnection should provide some examples. This snippet for example has both :).

Paul