| 153 | } |
| 154 | |
| 155 | void RtspServer::methodOptions( |
| 156 | const std::string &sessionID, const int cseq, std::string &htmlBody) { |
| 157 | static const char *RTSP_OPTIONS_OK = |
| 158 | "RTSP/1.0 200 OK\r\n" \ |
| 159 | "CSeq: %1\r\n" \ |
| 160 | "Public: OPTIONS, DESCRIBE, SETUP, PLAY, TEARDOWN\r\n" \ |
| 161 | "%2" \ |
| 162 | "\r\n"; |
| 163 | |
| 164 | // check if we are in session, then we need to send the Session ID |
| 165 | const std::string sessionIDHeaderField = (sessionID.size() > 2) ? |
| 166 | StringConverter::stringFormat("Session: %1\r\n", sessionID) : ""; |
| 167 | |
| 168 | htmlBody = StringConverter::stringFormat(RTSP_OPTIONS_OK, cseq, sessionIDHeaderField); |
| 169 | } |
| 170 | |
| 171 | void RtspServer::methodDescribe( |
| 172 | const std::string &sessionID, const int cseq, const int streamID, std::string &htmlBody) { |
nothing calls this directly
no outgoing calls
no test coverage detected