[Live-devel] Make all RTSP requests potentially session-aware

Lionel Orry lionel.orry at em-sys.fr
Fri Aug 10 01:00:34 PDT 2012


Hi Ross,

I would like to know if that would be interesting to make all RTSP
requests handling in RTSPServer session-aware; an example of flow would
be, for a request XXX currently unaware of session (OPTIONS for
instance):

- detect presence of Session header
- if present:
    - call RTSPServer::RTSPClientSession::handleCmd_XXX()
        - default implementation of handleCmd_XXX() is to call
          RTSPServer::RTSPClientConnection::handleCmd_XXX()
            - implementation in RTSPClientConnection as usual
- if absent:
    - call RTSPServer::RTSPClientConnection::handleCmd_XXX() directly

That way, if one needs a special handling of such a request in a session
context, he can override RTSPServer::RTSPClientSession::handleCmd_XXX().

What do you think about it?

Regards,
Lionel



More information about the live-devel mailing list