• How to redirect an HTTP or RTSP session through server-side code

    Note: Wowza Media Server™ 3.0.0 or later is required.

    It's possible to redirect an RTSP or HTTP streaming session (cupertino, sanjose and smooth) through server-side code.

    To redirect an HTTP session the code looks like this:

    public void onHTTPSessionCreate(IHTTPStreamerSession httpSession)
    To redirect an RTSPsession the code looks like this:

    public void onRTPSessionCreate(RTPSession rtpSession)
    The above methods will send a 302 redirect. There are additional APIs to control the response code. See the server-side API documentation for IHTTPStreamerSession and RTPSession.

    Note: Not all RTSP and HTTP players support redirects.

    Originally Published: 10-09-2011.
    Updated: 10-31-2014.

    If you're having problems or want to discuss this article, post in our forum.