live
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
MultiFramedRTPSink Class Reference

#include <MultiFramedRTPSink.hh>

Inheritance diagram for MultiFramedRTPSink:
Inheritance graph
[legend]
Collaboration diagram for MultiFramedRTPSink:
Collaboration graph
[legend]

Public Types

typedef void() onSendErrorFunc(void *clientData)
 
typedef void() afterPlayingFunc(void *clientData)
 

Public Member Functions

void setPacketSizes (unsigned preferredPacketSize, unsigned maxPacketSize)
 
void setOnSendErrorFunc (onSendErrorFunc *onSendErrorFunc, void *onSendErrorFuncData)
 
virtual void stopPlaying ()
 
Groupsock const & groupsockBeingUsed () const
 
GroupsockgroupsockBeingUsed ()
 
unsigned char rtpPayloadType () const
 
unsigned rtpTimestampFrequency () const
 
void setRTPTimestampFrequency (unsigned freq)
 
char const * rtpPayloadFormatName () const
 
unsigned numChannels () const
 
virtual char const * sdpMediaType () const
 
virtual char * rtpmapLine () const
 
virtual char const * auxSDPLine ()
 
u_int16_t currentSeqNo () const
 
u_int32_t presetNextTimestamp ()
 
RTPTransmissionStatsDBtransmissionStatsDB () const
 
Boolean nextTimestampHasBeenPreset () const
 
BooleanenableRTCPReports ()
 
void getTotalBitrate (unsigned &outNumBytes, double &outElapsedTime)
 
struct timeval const & creationTime () const
 
struct timeval const & initialPresentationTime () const
 
struct timeval const & mostRecentPresentationTime () const
 
void resetPresentationTimes ()
 
void setStreamSocket (int sockNum, unsigned char streamChannelId, TLSState *tlsState)
 
void addStreamSocket (int sockNum, unsigned char streamChannelId, TLSState *tlsState)
 
void removeStreamSocket (int sockNum, unsigned char streamChannelId)
 
unsigned & estimatedBitrate ()
 
u_int32_t SSRC () const
 
Boolean startPlaying (MediaSource &source, afterPlayingFunc *afterFunc, void *afterClientData)
 
FramedSourcesource () const
 
UsageEnvironmentenvir () const
 
char const * name () const
 
virtual Boolean isSource () const
 
virtual Boolean isRTCPInstance () const
 
virtual Boolean isRTSPClient () const
 
virtual Boolean isRTSPServer () const
 
virtual Boolean isMediaSession () const
 
virtual Boolean isServerMediaSession () const
 

Static Public Member Functions

static Boolean lookupByName (UsageEnvironment &env, char const *sinkName, RTPSink *&resultSink)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sinkName, MediaSink *&resultSink)
 
static Boolean lookupByName (UsageEnvironment &env, char const *mediumName, Medium *&resultMedium)
 
static void close (UsageEnvironment &env, char const *mediumName)
 
static void close (Medium *medium)
 

Protected Member Functions

 MultiFramedRTPSink (UsageEnvironment &env, Groupsock *rtpgs, unsigned char rtpPayloadType, unsigned rtpTimestampFrequency, char const *rtpPayloadFormatName, unsigned numChannels=1)
 
virtual ~MultiFramedRTPSink ()
 
virtual void doSpecialFrameHandling (unsigned fragmentationOffset, unsigned char *frameStart, unsigned numBytesInFrame, struct timeval framePresentationTime, unsigned numRemainingBytes)
 
virtual Boolean allowFragmentationAfterStart () const
 
virtual Boolean allowOtherFramesAfterLastFragment () const
 
virtual Boolean frameCanAppearAfterPacketStart (unsigned char const *frameStart, unsigned numBytesInFrame) const
 
virtual unsigned specialHeaderSize () const
 
virtual unsigned frameSpecificHeaderSize () const
 
virtual unsigned computeOverflowForNewFrame (unsigned newFrameSize) const
 
Boolean isFirstPacket () const
 
Boolean isFirstFrameInPacket () const
 
unsigned curFragmentationOffset () const
 
void setMarkerBit ()
 
void setTimestamp (struct timeval framePresentationTime)
 
void setSpecialHeaderWord (unsigned word, unsigned wordPosition=0)
 
void setSpecialHeaderBytes (unsigned char const *bytes, unsigned numBytes, unsigned bytePosition=0)
 
void setFrameSpecificHeaderWord (unsigned word, unsigned wordPosition=0)
 
void setFrameSpecificHeaderBytes (unsigned char const *bytes, unsigned numBytes, unsigned bytePosition=0)
 
void setFramePadding (unsigned numPaddingBytes)
 
unsigned numFramesUsedSoFar () const
 
unsigned ourMaxPacketSize () const
 
virtual Boolean continuePlaying ()
 
u_int32_t convertToRTPTimestamp (struct timeval tv)
 
unsigned packetCount () const
 
unsigned octetCount () const
 
virtual Boolean sourceIsCompatibleWithUs (MediaSource &source)
 
void onSourceClosure ()
 
TaskTokennextTask ()
 

Static Protected Member Functions

static void onSourceClosure (void *clientData)
 

Protected Attributes

RTPInterface fRTPInterface
 
unsigned char fRTPPayloadType
 
unsigned fPacketCount
 
unsigned fOctetCount
 
unsigned fTotalOctetCount
 
struct timeval fTotalOctetCountStartTime fInitialPresentationTime fMostRecentPresentationTime
 
u_int32_t fCurrentTimestamp
 
u_int16_t fSeqNo
 
FramedSourcefSource
 

Private Member Functions

void buildAndSendPacket (Boolean isFirstPacket)
 
void packFrame ()
 
void sendPacketIfNecessary ()
 
void afterGettingFrame1 (unsigned numBytesRead, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
Boolean isTooBigForAPacket (unsigned numBytes) const
 
virtual Boolean isRTPSink () const
 
virtual Boolean isSink () const
 

Static Private Member Functions

static void sendNext (void *firstArg)
 
static void afterGettingFrame (void *clientData, unsigned numBytesRead, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
static void ourHandleClosure (void *clientData)
 

Private Attributes

OutPacketBufferfOutBuf
 
Boolean fNoFramesLeft
 
unsigned fNumFramesUsedSoFar
 
unsigned fCurFragmentationOffset
 
Boolean fPreviousFrameEndedFragmentation
 
Boolean fIsFirstPacket
 
struct timeval fNextSendTime
 
unsigned fTimestampPosition
 
unsigned fSpecialHeaderPosition
 
unsigned fSpecialHeaderSize
 
unsigned fCurFrameSpecificHeaderPosition
 
unsigned fCurFrameSpecificHeaderSize
 
unsigned fTotalFrameSpecificHeaderSizes
 
unsigned fOurMaxPacketSize
 
onSendErrorFuncfOnSendErrorFunc
 
void * fOnSendErrorData
 
u_int32_t fSSRC
 
u_int32_t fTimestampBase
 
unsigned fTimestampFrequency
 
Boolean fNextTimestampHasBeenPreset
 
Boolean fEnableRTCPReports
 
char const * fRTPPayloadFormatName
 
unsigned fNumChannels
 
struct timeval fCreationTime
 
unsigned fEstimatedBitrate
 
RTPTransmissionStatsDBfTransmissionStatsDB
 
afterPlayingFuncfAfterFunc
 
void * fAfterClientData
 
UsageEnvironmentfEnviron
 
char fMediumName [mediumNameMaxLen]
 
TaskToken fNextTask
 

Friends

void sendNext (void *)
 

Detailed Description

Definition at line 29 of file MultiFramedRTPSink.hh.

Member Typedef Documentation

◆ afterPlayingFunc

typedef void() MediaSink::afterPlayingFunc(void *clientData)
inherited

Definition at line 33 of file MediaSink.hh.

◆ onSendErrorFunc

typedef void() MultiFramedRTPSink::onSendErrorFunc(void *clientData)

Definition at line 33 of file MultiFramedRTPSink.hh.

Constructor & Destructor Documentation

◆ MultiFramedRTPSink()

MultiFramedRTPSink::MultiFramedRTPSink ( UsageEnvironment env,
Groupsock rtpgs,
unsigned char  rtpPayloadType,
unsigned  rtpTimestampFrequency,
char const *  rtpPayloadFormatName,
unsigned  numChannels = 1 
)
protected

◆ ~MultiFramedRTPSink()

virtual MultiFramedRTPSink::~MultiFramedRTPSink ( )
protectedvirtual

Member Function Documentation

◆ addStreamSocket()

void RTPSink::addStreamSocket ( int  sockNum,
unsigned char  streamChannelId,
TLSState tlsState 
)
inlineinherited

Definition at line 81 of file RTPSink.hh.

81  {
82  fRTPInterface.addStreamSocket(sockNum, streamChannelId, tlsState);
83  }
void addStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)
RTPInterface fRTPInterface
Definition: RTPSink.hh:110

References RTPInterface::addStreamSocket(), and RTPSink::fRTPInterface.

◆ afterGettingFrame()

static void MultiFramedRTPSink::afterGettingFrame ( void *  clientData,
unsigned  numBytesRead,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
staticprivate

◆ afterGettingFrame1()

void MultiFramedRTPSink::afterGettingFrame1 ( unsigned  numBytesRead,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
private

◆ allowFragmentationAfterStart()

virtual Boolean MultiFramedRTPSink::allowFragmentationAfterStart ( ) const
protectedvirtual

Reimplemented in MPEG4ESVideoRTPSink, and MPEG1or2VideoRTPSink.

◆ allowOtherFramesAfterLastFragment()

virtual Boolean MultiFramedRTPSink::allowOtherFramesAfterLastFragment ( ) const
protectedvirtual

◆ auxSDPLine()

virtual char const* RTPSink::auxSDPLine ( )
virtualinherited

◆ buildAndSendPacket()

void MultiFramedRTPSink::buildAndSendPacket ( Boolean  isFirstPacket)
private

◆ close() [1/2]

static void Medium::close ( Medium medium)
staticinherited

◆ close() [2/2]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited

◆ computeOverflowForNewFrame()

virtual unsigned MultiFramedRTPSink::computeOverflowForNewFrame ( unsigned  newFrameSize) const
protectedvirtual

Reimplemented in RawVideoRTPSink, and DVVideoRTPSink.

◆ continuePlaying()

virtual Boolean MultiFramedRTPSink::continuePlaying ( )
protectedvirtual

Implements MediaSink.

Reimplemented in T140TextRTPSink, and H264or5VideoRTPSink.

◆ convertToRTPTimestamp()

u_int32_t RTPSink::convertToRTPTimestamp ( struct timeval  tv)
protectedinherited

◆ creationTime()

struct timeval const& RTPSink::creationTime ( ) const
inlineinherited

Definition at line 72 of file RTPSink.hh.

72 { return fCreationTime; }
struct timeval fCreationTime
Definition: RTPSink.hh:128

References RTPSink::fCreationTime.

◆ curFragmentationOffset()

unsigned MultiFramedRTPSink::curFragmentationOffset ( ) const
inlineprotected

Definition at line 79 of file MultiFramedRTPSink.hh.

79 { return fCurFragmentationOffset; }

References fCurFragmentationOffset.

◆ currentSeqNo()

u_int16_t RTPSink::currentSeqNo ( ) const
inlineinherited

Definition at line 56 of file RTPSink.hh.

56 { return fSeqNo; }
u_int16_t fSeqNo
Definition: RTPSink.hh:115

References RTPSink::fSeqNo.

◆ doSpecialFrameHandling()

virtual void MultiFramedRTPSink::doSpecialFrameHandling ( unsigned  fragmentationOffset,
unsigned char *  frameStart,
unsigned  numBytesInFrame,
struct timeval  framePresentationTime,
unsigned  numRemainingBytes 
)
protectedvirtual

◆ enableRTCPReports()

Boolean& RTPSink::enableRTCPReports ( )
inlineinherited

Definition at line 66 of file RTPSink.hh.

66 { return fEnableRTCPReports; }
Boolean fEnableRTCPReports
Definition: RTPSink.hh:125

References RTPSink::fEnableRTCPReports.

◆ envir()

UsageEnvironment& Medium::envir ( ) const
inlineinherited

◆ estimatedBitrate()

unsigned& RTPSink::estimatedBitrate ( )
inlineinherited

Definition at line 87 of file RTPSink.hh.

87 { return fEstimatedBitrate; } // kbps; usually 0 (i.e., unset)
unsigned fEstimatedBitrate
Definition: RTPSink.hh:129

References RTPSink::fEstimatedBitrate.

◆ frameCanAppearAfterPacketStart()

virtual Boolean MultiFramedRTPSink::frameCanAppearAfterPacketStart ( unsigned char const *  frameStart,
unsigned  numBytesInFrame 
) const
protectedvirtual

◆ frameSpecificHeaderSize()

virtual unsigned MultiFramedRTPSink::frameSpecificHeaderSize ( ) const
protectedvirtual

Reimplemented in VorbisAudioRTPSink.

◆ getTotalBitrate()

void RTPSink::getTotalBitrate ( unsigned &  outNumBytes,
double &  outElapsedTime 
)
inherited

◆ groupsockBeingUsed() [1/2]

Groupsock& RTPSink::groupsockBeingUsed ( )
inlineinherited

Definition at line 40 of file RTPSink.hh.

40 { return *(fRTPInterface.gs()); }
Groupsock * gs() const
Definition: RTPInterface.hh:51

References RTPSink::fRTPInterface, and RTPInterface::gs().

◆ groupsockBeingUsed() [2/2]

Groupsock const& RTPSink::groupsockBeingUsed ( ) const
inlineinherited

Definition at line 39 of file RTPSink.hh.

39 { return *(fRTPInterface.gs()); }

References RTPSink::fRTPInterface, and RTPInterface::gs().

◆ initialPresentationTime()

struct timeval const& RTPSink::initialPresentationTime ( ) const
inlineinherited

Definition at line 73 of file RTPSink.hh.

73 { return fInitialPresentationTime; }

◆ isFirstFrameInPacket()

Boolean MultiFramedRTPSink::isFirstFrameInPacket ( ) const
inlineprotected

Definition at line 78 of file MultiFramedRTPSink.hh.

78 { return fNumFramesUsedSoFar == 0; }

References fNumFramesUsedSoFar.

◆ isFirstPacket()

Boolean MultiFramedRTPSink::isFirstPacket ( ) const
inlineprotected

Definition at line 77 of file MultiFramedRTPSink.hh.

77 { return fIsFirstPacket; }

References fIsFirstPacket.

◆ isMediaSession()

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

◆ isRTCPInstance()

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

◆ isRTPSink()

virtual Boolean RTPSink::isRTPSink ( ) const
privatevirtualinherited

Reimplemented from MediaSink.

◆ isRTSPClient()

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

◆ isRTSPServer()

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

◆ isServerMediaSession()

virtual Boolean Medium::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

◆ isSink()

virtual Boolean MediaSink::isSink ( ) const
privatevirtualinherited

Reimplemented from Medium.

◆ isSource()

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

◆ isTooBigForAPacket()

Boolean MultiFramedRTPSink::isTooBigForAPacket ( unsigned  numBytes) const
private

◆ lookupByName() [1/3]

static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited

◆ lookupByName() [2/3]

static Boolean MediaSink::lookupByName ( UsageEnvironment env,
char const *  sinkName,
MediaSink *&  resultSink 
)
staticinherited

◆ lookupByName() [3/3]

static Boolean RTPSink::lookupByName ( UsageEnvironment env,
char const *  sinkName,
RTPSink *&  resultSink 
)
staticinherited

◆ mostRecentPresentationTime()

struct timeval const& RTPSink::mostRecentPresentationTime ( ) const
inlineinherited

Definition at line 74 of file RTPSink.hh.

struct timeval fTotalOctetCountStartTime fInitialPresentationTime fMostRecentPresentationTime
Definition: RTPSink.hh:113

References RTPSink::fMostRecentPresentationTime.

◆ name()

char const* Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

61 {return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:83

References Medium::fMediumName.

◆ nextTask()

TaskToken& Medium::nextTask ( )
inlineprotectedinherited

Definition at line 77 of file Media.hh.

77  {
78  return fNextTask;
79  }
TaskToken fNextTask
Definition: Media.hh:84

References Medium::fNextTask.

◆ nextTimestampHasBeenPreset()

Boolean RTPSink::nextTimestampHasBeenPreset ( ) const
inlineinherited

Definition at line 65 of file RTPSink.hh.

Boolean fNextTimestampHasBeenPreset
Definition: RTPSink.hh:124

References RTPSink::fNextTimestampHasBeenPreset.

◆ numChannels()

unsigned RTPSink::numChannels ( ) const
inlineinherited

Definition at line 49 of file RTPSink.hh.

49 { return fNumChannels; }
unsigned fNumChannels
Definition: RTPSink.hh:127

References RTPSink::fNumChannels.

◆ numFramesUsedSoFar()

unsigned MultiFramedRTPSink::numFramesUsedSoFar ( ) const
inlineprotected

Definition at line 91 of file MultiFramedRTPSink.hh.

91 { return fNumFramesUsedSoFar; }

References fNumFramesUsedSoFar.

◆ octetCount()

unsigned RTPSink::octetCount ( ) const
inlineprotectedinherited

Definition at line 107 of file RTPSink.hh.

107 {return fOctetCount;}
unsigned fOctetCount
Definition: RTPSink.hh:112

References RTPSink::fOctetCount.

◆ onSourceClosure() [1/2]

void MediaSink::onSourceClosure ( )
protectedinherited

◆ onSourceClosure() [2/2]

static void MediaSink::onSourceClosure ( void *  clientData)
staticprotectedinherited

◆ ourHandleClosure()

static void MultiFramedRTPSink::ourHandleClosure ( void *  clientData)
staticprivate

◆ ourMaxPacketSize()

unsigned MultiFramedRTPSink::ourMaxPacketSize ( ) const
inlineprotected

Definition at line 92 of file MultiFramedRTPSink.hh.

92 { return fOurMaxPacketSize; }

References fOurMaxPacketSize.

◆ packetCount()

unsigned RTPSink::packetCount ( ) const
inlineprotectedinherited

Definition at line 106 of file RTPSink.hh.

106 {return fPacketCount;}
unsigned fPacketCount
Definition: RTPSink.hh:112

References RTPSink::fPacketCount.

◆ packFrame()

void MultiFramedRTPSink::packFrame ( )
private

◆ presetNextTimestamp()

u_int32_t RTPSink::presetNextTimestamp ( )
inherited

◆ removeStreamSocket()

void RTPSink::removeStreamSocket ( int  sockNum,
unsigned char  streamChannelId 
)
inlineinherited

Definition at line 84 of file RTPSink.hh.

84  {
85  fRTPInterface.removeStreamSocket(sockNum, streamChannelId);
86  }
void removeStreamSocket(int sockNum, unsigned char streamChannelId)

References RTPSink::fRTPInterface, and RTPInterface::removeStreamSocket().

◆ resetPresentationTimes()

void RTPSink::resetPresentationTimes ( )
inherited

◆ rtpmapLine()

virtual char* RTPSink::rtpmapLine ( ) const
virtualinherited

◆ rtpPayloadFormatName()

char const* RTPSink::rtpPayloadFormatName ( ) const
inlineinherited

Definition at line 47 of file RTPSink.hh.

47 {return fRTPPayloadFormatName;}
char const * fRTPPayloadFormatName
Definition: RTPSink.hh:126

References RTPSink::fRTPPayloadFormatName.

◆ rtpPayloadType()

unsigned char RTPSink::rtpPayloadType ( ) const
inlineinherited

Definition at line 42 of file RTPSink.hh.

42 { return fRTPPayloadType; }
unsigned char fRTPPayloadType
Definition: RTPSink.hh:111

References RTPSink::fRTPPayloadType.

◆ rtpTimestampFrequency()

unsigned RTPSink::rtpTimestampFrequency ( ) const
inlineinherited

Definition at line 43 of file RTPSink.hh.

43 { return fTimestampFrequency; }
unsigned fTimestampFrequency
Definition: RTPSink.hh:123

References RTPSink::fTimestampFrequency.

◆ sdpMediaType()

virtual char const* RTPSink::sdpMediaType ( ) const
virtualinherited

◆ sendNext()

static void MultiFramedRTPSink::sendNext ( void *  firstArg)
staticprivate

◆ sendPacketIfNecessary()

void MultiFramedRTPSink::sendPacketIfNecessary ( )
private

◆ setFramePadding()

void MultiFramedRTPSink::setFramePadding ( unsigned  numPaddingBytes)
protected

◆ setFrameSpecificHeaderBytes()

void MultiFramedRTPSink::setFrameSpecificHeaderBytes ( unsigned char const *  bytes,
unsigned  numBytes,
unsigned  bytePosition = 0 
)
protected

◆ setFrameSpecificHeaderWord()

void MultiFramedRTPSink::setFrameSpecificHeaderWord ( unsigned  word,
unsigned  wordPosition = 0 
)
protected

◆ setMarkerBit()

void MultiFramedRTPSink::setMarkerBit ( )
protected

◆ setOnSendErrorFunc()

void MultiFramedRTPSink::setOnSendErrorFunc ( onSendErrorFunc onSendErrorFunc,
void *  onSendErrorFuncData 
)
inline

Definition at line 34 of file MultiFramedRTPSink.hh.

34  {
35  // Can be used to set a callback function to be called if there's an error sending RTP packets on our socket.
37  fOnSendErrorData = onSendErrorFuncData;
38  }
void() onSendErrorFunc(void *clientData)
onSendErrorFunc * fOnSendErrorFunc

References fOnSendErrorData, and fOnSendErrorFunc.

◆ setPacketSizes()

void MultiFramedRTPSink::setPacketSizes ( unsigned  preferredPacketSize,
unsigned  maxPacketSize 
)

◆ setRTPTimestampFrequency()

void RTPSink::setRTPTimestampFrequency ( unsigned  freq)
inlineinherited

Definition at line 44 of file RTPSink.hh.

44  {
45  fTimestampFrequency = freq;
46  }

References RTPSink::fTimestampFrequency.

◆ setSpecialHeaderBytes()

void MultiFramedRTPSink::setSpecialHeaderBytes ( unsigned char const *  bytes,
unsigned  numBytes,
unsigned  bytePosition = 0 
)
protected

◆ setSpecialHeaderWord()

void MultiFramedRTPSink::setSpecialHeaderWord ( unsigned  word,
unsigned  wordPosition = 0 
)
protected

◆ setStreamSocket()

void RTPSink::setStreamSocket ( int  sockNum,
unsigned char  streamChannelId,
TLSState tlsState 
)
inlineinherited

Definition at line 78 of file RTPSink.hh.

78  {
79  fRTPInterface.setStreamSocket(sockNum, streamChannelId, tlsState);
80  }
void setStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)

References RTPSink::fRTPInterface, and RTPInterface::setStreamSocket().

◆ setTimestamp()

void MultiFramedRTPSink::setTimestamp ( struct timeval  framePresentationTime)
protected

◆ source()

FramedSource* MediaSink::source ( ) const
inlineinherited

Definition at line 42 of file MediaSink.hh.

42 {return fSource;}
FramedSource * fSource
Definition: MediaSink.hh:58

References MediaSink::fSource.

◆ sourceIsCompatibleWithUs()

virtual Boolean MediaSink::sourceIsCompatibleWithUs ( MediaSource source)
protectedvirtualinherited

◆ specialHeaderSize()

virtual unsigned MultiFramedRTPSink::specialHeaderSize ( ) const
protectedvirtual

◆ SSRC()

u_int32_t RTPSink::SSRC ( ) const
inlineinherited

Definition at line 89 of file RTPSink.hh.

89 {return fSSRC;}
u_int32_t fSSRC
Definition: RTPSink.hh:122

References RTPSink::fSSRC.

◆ startPlaying()

Boolean MediaSink::startPlaying ( MediaSource source,
afterPlayingFunc afterFunc,
void *  afterClientData 
)
inherited

◆ stopPlaying()

virtual void MultiFramedRTPSink::stopPlaying ( )
virtual

Reimplemented from MediaSink.

◆ transmissionStatsDB()

RTPTransmissionStatsDB& RTPSink::transmissionStatsDB ( ) const
inlineinherited

Definition at line 61 of file RTPSink.hh.

61  {
62  return *fTransmissionStatsDB;
63  }
RTPTransmissionStatsDB * fTransmissionStatsDB
Definition: RTPSink.hh:131

References RTPSink::fTransmissionStatsDB.

Friends And Related Function Documentation

◆ sendNext

void sendNext ( void *  )
friend

Field Documentation

◆ fAfterClientData

void* MediaSink::fAfterClientData
privateinherited

Definition at line 67 of file MediaSink.hh.

◆ fAfterFunc

afterPlayingFunc* MediaSink::fAfterFunc
privateinherited

Definition at line 66 of file MediaSink.hh.

◆ fCreationTime

struct timeval RTPSink::fCreationTime
privateinherited

Definition at line 127 of file RTPSink.hh.

Referenced by RTPSink::creationTime().

◆ fCurFragmentationOffset

unsigned MultiFramedRTPSink::fCurFragmentationOffset
private

Definition at line 123 of file MultiFramedRTPSink.hh.

Referenced by curFragmentationOffset().

◆ fCurFrameSpecificHeaderPosition

unsigned MultiFramedRTPSink::fCurFrameSpecificHeaderPosition
private

Definition at line 131 of file MultiFramedRTPSink.hh.

◆ fCurFrameSpecificHeaderSize

unsigned MultiFramedRTPSink::fCurFrameSpecificHeaderSize
private

Definition at line 132 of file MultiFramedRTPSink.hh.

◆ fCurrentTimestamp

u_int32_t RTPSink::fCurrentTimestamp
protectedinherited

Definition at line 114 of file RTPSink.hh.

◆ fEnableRTCPReports

Boolean RTPSink::fEnableRTCPReports
privateinherited

Definition at line 125 of file RTPSink.hh.

Referenced by RTPSink::enableRTCPReports().

◆ fEnviron

UsageEnvironment& Medium::fEnviron
privateinherited

Definition at line 82 of file Media.hh.

Referenced by Medium::envir().

◆ fEstimatedBitrate

unsigned RTPSink::fEstimatedBitrate
privateinherited

Definition at line 129 of file RTPSink.hh.

Referenced by RTPSink::estimatedBitrate().

◆ fIsFirstPacket

Boolean MultiFramedRTPSink::fIsFirstPacket
private

Definition at line 126 of file MultiFramedRTPSink.hh.

Referenced by isFirstPacket().

◆ fMediumName

char Medium::fMediumName[mediumNameMaxLen]
privateinherited

Definition at line 83 of file Media.hh.

Referenced by Medium::name().

◆ fMostRecentPresentationTime

struct timeval fTotalOctetCountStartTime fInitialPresentationTime RTPSink::fMostRecentPresentationTime
protectedinherited

Definition at line 112 of file RTPSink.hh.

Referenced by RTPSink::mostRecentPresentationTime().

◆ fNextSendTime

struct timeval MultiFramedRTPSink::fNextSendTime
private

Definition at line 126 of file MultiFramedRTPSink.hh.

◆ fNextTask

TaskToken Medium::fNextTask
privateinherited

Definition at line 84 of file Media.hh.

Referenced by Medium::nextTask().

◆ fNextTimestampHasBeenPreset

Boolean RTPSink::fNextTimestampHasBeenPreset
privateinherited

Definition at line 124 of file RTPSink.hh.

Referenced by RTPSink::nextTimestampHasBeenPreset().

◆ fNoFramesLeft

Boolean MultiFramedRTPSink::fNoFramesLeft
private

Definition at line 121 of file MultiFramedRTPSink.hh.

◆ fNumChannels

unsigned RTPSink::fNumChannels
privateinherited

Definition at line 127 of file RTPSink.hh.

Referenced by RTPSink::numChannels().

◆ fNumFramesUsedSoFar

unsigned MultiFramedRTPSink::fNumFramesUsedSoFar
private

Definition at line 122 of file MultiFramedRTPSink.hh.

Referenced by isFirstFrameInPacket(), and numFramesUsedSoFar().

◆ fOctetCount

unsigned RTPSink::fOctetCount
protectedinherited

Definition at line 112 of file RTPSink.hh.

Referenced by RTPSink::octetCount().

◆ fOnSendErrorData

void* MultiFramedRTPSink::fOnSendErrorData
private

Definition at line 137 of file MultiFramedRTPSink.hh.

Referenced by setOnSendErrorFunc().

◆ fOnSendErrorFunc

onSendErrorFunc* MultiFramedRTPSink::fOnSendErrorFunc
private

Definition at line 136 of file MultiFramedRTPSink.hh.

Referenced by setOnSendErrorFunc().

◆ fOurMaxPacketSize

unsigned MultiFramedRTPSink::fOurMaxPacketSize
private

Definition at line 134 of file MultiFramedRTPSink.hh.

Referenced by ourMaxPacketSize().

◆ fOutBuf

OutPacketBuffer* MultiFramedRTPSink::fOutBuf
private

Definition at line 119 of file MultiFramedRTPSink.hh.

◆ fPacketCount

unsigned RTPSink::fPacketCount
protectedinherited

Definition at line 112 of file RTPSink.hh.

Referenced by RTPSink::packetCount().

◆ fPreviousFrameEndedFragmentation

Boolean MultiFramedRTPSink::fPreviousFrameEndedFragmentation
private

Definition at line 124 of file MultiFramedRTPSink.hh.

◆ fRTPInterface

RTPInterface RTPSink::fRTPInterface
protectedinherited

◆ fRTPPayloadFormatName

char const* RTPSink::fRTPPayloadFormatName
privateinherited

Definition at line 126 of file RTPSink.hh.

Referenced by RTPSink::rtpPayloadFormatName().

◆ fRTPPayloadType

unsigned char RTPSink::fRTPPayloadType
protectedinherited

Definition at line 111 of file RTPSink.hh.

Referenced by RTPSink::rtpPayloadType().

◆ fSeqNo

u_int16_t RTPSink::fSeqNo
protectedinherited

Definition at line 115 of file RTPSink.hh.

Referenced by RTPSink::currentSeqNo().

◆ fSource

FramedSource* MediaSink::fSource
protectedinherited

Definition at line 58 of file MediaSink.hh.

Referenced by MediaSink::source().

◆ fSpecialHeaderPosition

unsigned MultiFramedRTPSink::fSpecialHeaderPosition
private

Definition at line 129 of file MultiFramedRTPSink.hh.

◆ fSpecialHeaderSize

unsigned MultiFramedRTPSink::fSpecialHeaderSize
private

Definition at line 130 of file MultiFramedRTPSink.hh.

◆ fSSRC

u_int32_t RTPSink::fSSRC
privateinherited

Definition at line 122 of file RTPSink.hh.

Referenced by RTPSink::SSRC().

◆ fTimestampBase

u_int32_t RTPSink::fTimestampBase
privateinherited

Definition at line 122 of file RTPSink.hh.

◆ fTimestampFrequency

unsigned RTPSink::fTimestampFrequency
privateinherited

◆ fTimestampPosition

unsigned MultiFramedRTPSink::fTimestampPosition
private

Definition at line 128 of file MultiFramedRTPSink.hh.

◆ fTotalFrameSpecificHeaderSizes

unsigned MultiFramedRTPSink::fTotalFrameSpecificHeaderSizes
private

Definition at line 133 of file MultiFramedRTPSink.hh.

◆ fTotalOctetCount

unsigned RTPSink::fTotalOctetCount
protectedinherited

Definition at line 112 of file RTPSink.hh.

◆ fTransmissionStatsDB

RTPTransmissionStatsDB* RTPSink::fTransmissionStatsDB
privateinherited

Definition at line 131 of file RTPSink.hh.

Referenced by RTPSink::transmissionStatsDB().


The documentation for this class was generated from the following file: