VoIP::VoIP() { /* * G729 codec generates during the ON period a packet with * a fixed size (20 bytes). We must add the RTP header (12 bytes) */ m_size = 32; //application + RTP header m_stateON = false; SetApplicationType (Application::APPLICATION_TYPE_VOIP); }
cLocalApplication::cLocalApplication(char *name, char *basePath, char *initialClass, ApplicationInfo::cTransportProtocol *tp) { SetBaseDir(basePath); SetInitialClass(initialClass); SetTransportProtocol(tp); //give local apps unique app ids, even if illegal ones SetAid(nextId--); SetOid(-1); SetControlCode(Present); SetApplicationType(LocalDVBJApplication); SetServiceBound(false); AddName("deu", name); //TODO: change "deu" to real VDR language }
WEB::WEB() { /* * G729 codec generates during the ON period a packet with * a fixed size (20 bytes). We must add the RTP header (12 bytes) */ m_size = Ran.Pareto(1.1,81.5); if (m_size > 66666) { m_size = 66666; } m_stateON = false; SetApplicationType (Application::APPLICATION_TYPE_WEB); }
InfiniteBuffer::InfiniteBuffer() { SetApplicationType (Application::APPLICATION_TYPE_INFINITE_BUFFER); }