| | |
| | | |
| | | // By default, we request that the server stream its data using RTP/UDP. |
| | | // If, instead, you want to request that the server stream via RTP-over-TCP, change the following to True: |
| | | #define REQUEST_STREAMING_OVER_TCP False |
| | | #define REQUEST_STREAMING_OVER_TCP True |
| | | |
| | | // Even though we're not going to be doing anything with the incoming data, we still need to receive it. |
| | | // Define the size of the buffer that we'll use: |
| | |
| | | void shutdownStream(RTSPClient* rtspClient, int exitCode = 1); |
| | | |
| | | // A function that outputs a string that identifies each stream (for debugging output). Modify this if you wish: |
| | | log4cpp::CategoryStream& operator<<(log4cpp::CategoryStream& logRoot, const RTSPClient& rtspClient) |
| | | Logger& operator<<(Logger& logRoot, const RTSPClient& rtspClient) |
| | | { |
| | | return logRoot << "[URL:\"" << rtspClient.url() << "\"]: "; |
| | | } |
| | | |
| | | // A function that outputs a string that identifies each subsession (for debugging output). Modify this if you wish: |
| | | log4cpp::CategoryStream& operator<<(log4cpp::CategoryStream& logRoot, const MediaSubsession& subsession) |
| | | Logger& operator<<(Logger& logRoot, const MediaSubsession& subsession) |
| | | { |
| | | return logRoot << subsession.mediumName() << "/" << subsession.codecName(); |
| | | } |