| | |
| | | // Define the size of the buffer that we'll use: |
| | | #define DUMMY_SINK_RECEIVE_BUFFER_SIZE 1920*1080*3//#todo |
| | | |
| | | #define INCREASE_RECEIVE_BUFFER_TO 8000000 |
| | | |
| | | // If you don't want to see debugging output for each received frame, then comment out the following line: |
| | | //#define DEBUG_PRINT_EACH_RECEIVED_FRAME 1 |
| | | //#define DEBUG_PRINT_NPT 1 |
| | |
| | | LOG_INFO << "client ports " << scs.subsession->clientPortNum() << "-" << scs.subsession->clientPortNum()+1 << LOG_ENDL; |
| | | LOG_INFO << ")" << LOG_ENDL; |
| | | |
| | | #ifdef INCREASE_RECEIVE_BUFFER_TO |
| | | //sysctl net.core.rmem_max=40000000 |
| | | if (INCREASE_RECEIVE_BUFFER_TO > 0) |
| | | increaseReceiveBufferTo(env, scs.subsession->rtpSource()->RTPgs()->socketNum(), INCREASE_RECEIVE_BUFFER_TO); |
| | | #endif |
| | | |
| | | // Continue setting up this subsession, by sending a RTSP "SETUP" command: |
| | | rtspClient->sendSetupCommand(*scs.subsession, continueAfterSETUP, False, _ourRTSPClient->rtspConfig.requestStreamingOverTcp); |
| | | } |