22#ifndef _SIMPLE_RTP_SINK_HH
23#define _SIMPLE_RTP_SINK_HH
25#ifndef _MULTI_FRAMED_RTP_SINK_HH
33 unsigned char rtpPayloadFormat,
35 char const* sdpMediaTypeString,
48 unsigned char rtpPayloadFormat,
50 char const* sdpMediaTypeString,
53 Boolean allowMultipleFramesPerPacket,
61 unsigned char* frameStart,
62 unsigned numBytesInFrame,
63 struct timeval framePresentationTime,
64 unsigned numRemainingBytes);
67 unsigned numBytesInFrame)
const;
unsigned rtpTimestampFrequency() const
unsigned numChannels() const
char const * rtpPayloadFormatName() const
static SimpleRTPSink * createNew(UsageEnvironment &env, Groupsock *RTPgs, unsigned char rtpPayloadFormat, unsigned rtpTimestampFrequency, char const *sdpMediaTypeString, char const *rtpPayloadFormatName, unsigned numChannels=1, Boolean allowMultipleFramesPerPacket=True, Boolean doNormalMBitRule=True)
SimpleRTPSink(UsageEnvironment &env, Groupsock *RTPgs, unsigned char rtpPayloadFormat, unsigned rtpTimestampFrequency, char const *sdpMediaTypeString, char const *rtpPayloadFormatName, unsigned numChannels, Boolean allowMultipleFramesPerPacket, Boolean doNormalMBitRule)
virtual char const * sdpMediaType() const
Boolean fSetMBitOnNextPacket
char const * fSDPMediaTypeString
void setMBitOnNextPacket()
virtual Boolean frameCanAppearAfterPacketStart(unsigned char const *frameStart, unsigned numBytesInFrame) const
Boolean fAllowMultipleFramesPerPacket
virtual void doSpecialFrameHandling(unsigned fragmentationOffset, unsigned char *frameStart, unsigned numBytesInFrame, struct timeval framePresentationTime, unsigned numRemainingBytes)
Boolean fSetMBitOnLastFrames