Invalidate Cupertino session during its life

I created livestream app which is using wowza as streaming server, and create own wowza security module.

Until now i override ModuleBase.onHTTPCupertinoStreamingSessionCreate and ModuleBase.onHTTPCupertinoStreamingSessionDestroy which allow to reject/accept Cupertino session according … in my case token(passed as url param).

Everything works fine.

But sometimes i need to reject same session(previously accepted) during its life. With other words during play sometimes I need to invalidate token

The problem is that onHTTPCupertinoStreamingSessionCreate is called only once at the beginning of session.

I’m not sure which class should i override in order to invalidate sessions during its life. Maybe HTTPStreamerAdapterCupertinoStreamer or specially onPlaylist or onMediaFile methods

Hello

To have mid-life access to the http session, take a look at our following method signatures available to you:

       public void onHTTPStreamerRequest(IHTTPStreamerSession httpSession, IHTTPStreamerRequestContext reqContext)
       public void onHTTPCupertinoStreamerRequest(HTTPStreamerSessionCupertino httpSession, HTTPStreamerCupertinoRequestContext reqContext)
       public void onHTTPSanJoseStreamerRequest(HTTPStreamerSessionSanJose httpSession, HTTPStreamerSanJoseRequestContext reqContext)
       public void onHTTPSmoothStreamingStreamerRequest(HTTPStreamerSessionSmoothStreamer httpSession, HTTPStreamerSmoothStreamingRequestContext reqContext)
       public void onHTTPMPEGDashStreamerRequest(HTTPStreamerSessionMPEGDash httpSession, HTTPStreamerMPEGDashRequestContext reqContext)

The above are invoked (as protocol specifies) for each request (chunk or playlist etc). The generic handler (onHTTPStreamerRequest) will be for all http protocols.

Thanks,

Matt