[Live-devel] need access to Server Type from RTSPClient

John Jordan jordanjohnp at yahoo.com
Sat Oct 7 08:17:55 PDT 2006


Hi,

I have an application that uses the RTSPClient. The
application needs to know what kind of server it is
accessing. However, this information is not exposed in
the public interface of the RTSPClient.

Do you think it is reasonable to add a new operation,
of the form:

class RTSPClient: public Medium {
.
.
public:
  serverType(void) { return fServerTypeStr; }

private:
  char *fServerTypeStr;
}

The fServerTypeStr would be assigned like this (or
similar):

      else if (_strncasecmp(lineStart, "Server: ", 8)
== 0) {
        delete fServerTypeStr; fServerTypeStr =
strDup(&lineStart[8]);
      }

This would be done in both the
RTSPClient::sendOptionsCmd() and
RTSPClient::describeURL() implementations.

Note that at least one commercial RTSP video server
provides the "Server:" string in the OPTIONS response.

I'd like to request that this function be added to a
future release of liveMedia. If there is a better 
approach, please let me know.

Thanks for your help

John

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the live-devel mailing list