4 #include "GroupsockHelper.hh" 6 #include "liveMedia.hh" 19 if(newSession !=
NULL)
21 if(!newSession->initializeWithSDP(sdpDescription))
45 : fOurSession(session)
70 : MediaSubsession(parent)
87 fReadSource = fRTPSource = SimpleRTPSource::createNew(env(), fRTPSocket, fRTPPayloadFormat, fRTPTimestampFrequency, mimeTypeString.c_str());
90 if(rtpSource() !=
NULL)
94 unsigned const thresh = 33000;
95 rtpSource()->setPacketReorderingThresholdTime(thresh);
98 int socketNum = rtpSource()->RTPgs()->socketNum();
99 unsigned curBufferSize = getReceiveBufferSize(env(), socketNum);
100 unsigned newBufferSize = 1024 * 1024 * 8;
101 newBufferSize = setReceiveBufferTo(env(), socketNum, newBufferSize);
102 env() <<
"Changed socket receive buffer size for the \"" << mediumName() <<
"/" << codecName() <<
"\" subsession from " << curBufferSize <<
" to " << newBufferSize <<
" bytes\n";
110 return MediaSubsession::createSourceObjects(useSpecialRTPoffset);
const std::string RS_MEDIA_TYPE("RS_VIDEO")
GLsizei const GLchar *const * string
GLsizei GLenum GLboolean sink
const std::string RS_PAYLOAD_FORMAT("RS_FORMAT")