37 #ifndef RTCPPACKETBUILDER_H 39 #define RTCPPACKETBUILDER_H 53 class RTPPacketBuilder;
55 class RTCPCompoundPacket;
56 class RTCPCompoundPacketBuilder;
81 int Init(std::size_t maxpacksize,
double timestampunit,
const void *cname, std::size_t cnamelen);
97 timestampunit = tsunit;
108 maxpacketsize = maxpacksize;
122 transmissiondelay = delay;
134 int BuildBYEPacket(
RTCPCompoundPacket **pack,
const void *reason, std::size_t reasonlength,
bool useSRifpossible =
true);
146 interval_name = count;
159 interval_email = count;
172 interval_location = count;
185 interval_phone = count;
198 interval_tool = count;
211 interval_note = count;
219 return ownsdesinfo.SetName((
const uint8_t *) s, len);
227 return ownsdesinfo.SetEMail((
const uint8_t *) s, len);
235 return ownsdesinfo.SetLocation((
const uint8_t *) s, len);
243 return ownsdesinfo.SetPhone((
const uint8_t *) s, len);
251 return ownsdesinfo.SetTool((
const uint8_t *) s, len);
259 return ownsdesinfo.SetNote((
const uint8_t *) s, len);
267 return ownsdesinfo.GetCNAME(len);
270 void ClearAllSourceFlags();
273 void ClearAllSDESFlags();
349 bool pname, pemail, plocation, pphone,
ptool, pnote;
355 bool doname, doemail, doloc, dophone,
dotool, donote;
363 #endif // RTCPPACKETBUILDER_H
void SetProcessedName(bool v)
bool ProcessedLocation() const
bool ProcessedTool() const
int SetLocalNote(const void *s, std::size_t len)
void SetNoteInterval(int count)
int SetLocalPhone(const void *s, std::size_t len)
RTCPSDESInfoInternal ownsdesinfo
#define ERR_RTP_RTCPPACKETBUILDER_ILLEGALTIMESTAMPUNIT
int SetLocalTool(const void *s, std::size_t len)
void SetProcessedTool(bool v)
bool ProcessedPhone() const
std::size_t maxpacketsize
bool ProcessedEMail() const
void SetToolInterval(int count)
int SetMaximumPacketSize(std::size_t maxpacksize)
#define RTP_MINPACKETSIZE
int SetLocalEMail(const void *s, std::size_t len)
void SetProcessedEMail(bool v)
int SetTimestampUnit(double tsunit)
void SetProcessedPhone(bool v)
#define ERR_RTP_RTCPPACKETBUILDER_ILLEGALMAXPACKSIZE
void SetEMailInterval(int count)
RTPTime transmissiondelay
void SetLocationInterval(int count)
int SetLocalLocation(const void *s, std::size_t len)
void SetProcessedNote(bool v)
void SetPhoneInterval(int count)
#define ERR_RTP_RTCPPACKETBUILDER_NOTINIT
int SetPreTransmissionDelay(const RTPTime &delay)
void SetProcessedLocation(bool v)
RTPPacketBuilder & rtppacketbuilder
bool ProcessedNote() const
bool ProcessedName() const
uint8_t * GetLocalCNAME(std::size_t *len) const
int SetLocalName(const void *s, std::size_t len)
void SetNameInterval(int count)