|
live
|
#include <RTPSink.hh>


Public Types | |
| typedef void | afterPlayingFunc(void *clientData) |
Public Member Functions | |
| Groupsock const & | groupsockBeingUsed () const |
| Groupsock & | groupsockBeingUsed () |
| unsigned char | rtpPayloadType () const |
| unsigned | rtpTimestampFrequency () const |
| void | setRTPTimestampFrequency (unsigned freq) |
| char const * | rtpPayloadFormatName () const |
| unsigned | numChannels () const |
| void | setupForSRTP (Boolean useEncryption, u_int32_t roc) |
| u_int8_t * | setupForSRTP (Boolean useEncryption, u_int32_t roc, unsigned &resultMIKEYStateMessageSize) |
| void | setupForSRTP (u_int8_t const *MIKEYStateMessage, unsigned MIKEYStateMessageSize, u_int32_t roc) |
| virtual char const * | sdpMediaType () const |
| virtual char * | rtpmapLine () const |
| virtual char * | keyMgmtLine () |
| virtual char const * | auxSDPLine () |
| u_int16_t | currentSeqNo () const |
| u_int32_t | presetNextTimestamp () |
| RTPTransmissionStatsDB & | transmissionStatsDB () const |
| Boolean | nextTimestampHasBeenPreset () const |
| Boolean & | enableRTCPReports () |
| 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 |
| SRTPCryptographicContext * | getCrypto () const |
| u_int32_t | srtpROC () const |
| Boolean | startPlaying (MediaSource &source, afterPlayingFunc *afterFunc, void *afterClientData) |
| virtual void | stopPlaying () |
| FramedSource * | source () const |
| UsageEnvironment & | envir () 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 | |
| RTPSink (UsageEnvironment &env, Groupsock *rtpGS, unsigned char rtpPayloadType, u_int32_t rtpTimestampFrequency, char const *rtpPayloadFormatName, unsigned numChannels) | |
| virtual | ~RTPSink () |
| u_int32_t | convertToRTPTimestamp (struct timeval tv) |
| unsigned | packetCount () const |
| unsigned | octetCount () const |
| virtual Boolean | sourceIsCompatibleWithUs (MediaSource &source) |
| virtual Boolean | continuePlaying ()=0 |
| void | onSourceClosure () |
| TaskToken & | nextTask () |
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 |
| MIKEYState * | fMIKEYState |
| SRTPCryptographicContext * | fCrypto |
| FramedSource * | fSource |
Private Member Functions | |
| virtual Boolean | isRTPSink () const |
| virtual Boolean | isSink () const |
Private Attributes | |
| u_int32_t | fSSRC |
| u_int32_t | fTimestampBase |
| unsigned | fTimestampFrequency |
| Boolean | fNextTimestampHasBeenPreset |
| Boolean | fEnableRTCPReports |
| char const * | fRTPPayloadFormatName |
| unsigned | fNumChannels |
| struct timeval | fCreationTime |
| unsigned | fEstimatedBitrate |
| RTPTransmissionStatsDB * | fTransmissionStatsDB |
| afterPlayingFunc * | fAfterFunc |
| void * | fAfterClientData |
| UsageEnvironment & | fEnviron |
| char | fMediumName [mediumNameMaxLen] |
| TaskToken | fNextTask |
Friends | |
| class | RTCPInstance |
| class | RTPTransmissionStats |
Definition at line 36 of file RTPSink.hh.
|
inherited |
Definition at line 33 of file MediaSink.hh.
|
protected |
References numChannels(), rtpPayloadFormatName(), rtpPayloadType(), and rtpTimestampFrequency().
Referenced by lookupByName().
|
protectedvirtual |
|
inline |
Definition at line 92 of file RTPSink.hh.
References RTPInterface::addStreamSocket(), and fRTPInterface.
|
virtual |
|
staticinherited |
|
protectedpure virtualinherited |
Implemented in BasicUDPSink, FileSink, H264or5VideoRTPSink, HLSSegmenter, MultiFramedRTPSink, OggFileSink, and T140TextRTPSink.
|
protected |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Definition at line 59 of file Media.hh.
References fEnviron.
Referenced by MediaSubsession::env(), GenericMediaServer::ClientConnection::envir(), GenericMediaServer::ClientSession::envir(), and RTPInterface::envir().
|
inline |
|
inline |
| void RTPSink::getTotalBitrate | ( | unsigned & | outNumBytes, |
| double & | outElapsedTime ) |
|
inline |
|
inline |
|
inline |
Definition at line 84 of file RTPSink.hh.
|
virtualinherited |
Reimplemented in MediaSession.
|
virtualinherited |
Reimplemented in RTCPInstance.
|
virtualinherited |
Reimplemented in RTSPClient.
|
virtualinherited |
Reimplemented in RTSPServer.
|
virtualinherited |
Reimplemented in ServerMediaSession.
|
virtualinherited |
Reimplemented in MediaSource.
|
virtual |
|
staticinherited |
References MediaSink().
|
staticinherited |
References Medium().
|
static |
References RTPSink().
|
inline |
Definition at line 85 of file RTPSink.hh.
References fMostRecentPresentationTime.
|
inlineinherited |
Definition at line 61 of file Media.hh.
References fMediumName.
Referenced by QuickTimeFileSink::_atom(), RTSPServer::lookupByName(), RTCPInstance::sendAppPacket(), and OnDemandServerMediaSubsession::sendRTCPAppPacket().
|
inlineprotectedinherited |
|
inline |
|
inline |
Definition at line 50 of file RTPSink.hh.
References fNumChannels.
Referenced by AudioRTPSink::AudioRTPSink(), MPEG4GenericRTPSink::createNew(), MPEG4LATMAudioRTPSink::createNew(), SimpleRTPSink::createNew(), VorbisAudioRTPSink::createNew(), VorbisAudioRTPSink::createNew(), MPEG4GenericRTPSink::MPEG4GenericRTPSink(), MPEG4LATMAudioRTPSink::MPEG4LATMAudioRTPSink(), MultiFramedRTPSink::MultiFramedRTPSink(), RTPSink(), SimpleRTPSink::SimpleRTPSink(), and VorbisAudioRTPSink::VorbisAudioRTPSink().
|
inlineprotected |
|
protectedinherited |
|
staticprotectedinherited |
|
inlineprotected |
| u_int32_t RTPSink::presetNextTimestamp | ( | ) |
|
inline |
Definition at line 95 of file RTPSink.hh.
References fRTPInterface, and RTPInterface::removeStreamSocket().
| void RTPSink::resetPresentationTimes | ( | ) |
|
virtual |
|
inline |
Definition at line 48 of file RTPSink.hh.
References fRTPPayloadFormatName.
Referenced by AudioRTPSink::AudioRTPSink(), SimpleRTPSink::createNew(), MultiFramedRTPSink::MultiFramedRTPSink(), RTPSink(), SimpleRTPSink::SimpleRTPSink(), TextRTPSink::TextRTPSink(), and VideoRTPSink::VideoRTPSink().
|
inline |
Definition at line 45 of file RTPSink.hh.
References fRTPPayloadType.
Referenced by AudioRTPSink::AudioRTPSink(), MultiFramedRTPSink::MultiFramedRTPSink(), RTPSink(), TextRTPSink::TextRTPSink(), and VideoRTPSink::VideoRTPSink().
|
inline |
Definition at line 46 of file RTPSink.hh.
References fTimestampFrequency.
Referenced by AC3AudioRTPSink::AC3AudioRTPSink(), AudioRTPSink::AudioRTPSink(), AC3AudioRTPSink::createNew(), H263plusVideoRTPSink::createNew(), MPEG4ESVideoRTPSink::createNew(), MPEG4ESVideoRTPSink::createNew(), MPEG4GenericRTPSink::createNew(), MPEG4LATMAudioRTPSink::createNew(), SimpleRTPSink::createNew(), VorbisAudioRTPSink::createNew(), VorbisAudioRTPSink::createNew(), H263plusVideoRTPSink::H263plusVideoRTPSink(), MPEG4ESVideoRTPSink::MPEG4ESVideoRTPSink(), MPEG4GenericRTPSink::MPEG4GenericRTPSink(), MPEG4LATMAudioRTPSink::MPEG4LATMAudioRTPSink(), MultiFramedRTPSink::MultiFramedRTPSink(), RTPSink(), SimpleRTPSink::SimpleRTPSink(), TextRTPSink::TextRTPSink(), VideoRTPSink::VideoRTPSink(), and VorbisAudioRTPSink::VorbisAudioRTPSink().
|
virtual |
Reimplemented in AudioRTPSink, MPEG4GenericRTPSink, SimpleRTPSink, TextRTPSink, and VideoRTPSink.
|
inline |
Definition at line 47 of file RTPSink.hh.
References fTimestampFrequency.
|
inline |
Definition at line 89 of file RTPSink.hh.
References fRTPInterface, and RTPInterface::setStreamSocket().
| void RTPSink::setupForSRTP | ( | Boolean | useEncryption, |
| u_int32_t | roc ) |
| u_int8_t * RTPSink::setupForSRTP | ( | Boolean | useEncryption, |
| u_int32_t | roc, | ||
| unsigned & | resultMIKEYStateMessageSize ) |
| void RTPSink::setupForSRTP | ( | u_int8_t const * | MIKEYStateMessage, |
| unsigned | MIKEYStateMessageSize, | ||
| u_int32_t | roc ) |
|
inlineinherited |
Definition at line 42 of file MediaSink.hh.
References fSource.
Referenced by AMRAudioFileSink::sourceIsCompatibleWithUs(), AMRAudioRTPSink::sourceIsCompatibleWithUs(), DVVideoRTPSink::sourceIsCompatibleWithUs(), H264VideoRTPSink::sourceIsCompatibleWithUs(), H265VideoRTPSink::sourceIsCompatibleWithUs(), HLSSegmenter::sourceIsCompatibleWithUs(), JPEGVideoRTPSink::sourceIsCompatibleWithUs(), sourceIsCompatibleWithUs(), MPEG1or2VideoRTPSink::sourceIsCompatibleWithUs(), MPEG4ESVideoRTPSink::sourceIsCompatibleWithUs(), and startPlaying().
|
protectedvirtualinherited |
Reimplemented in AMRAudioFileSink, AMRAudioRTPSink, DVVideoRTPSink, H264VideoRTPSink, H265VideoRTPSink, HLSSegmenter, JPEGVideoRTPSink, MPEG1or2VideoRTPSink, and MPEG4ESVideoRTPSink.
References source().
| u_int32_t RTPSink::srtpROC | ( | ) | const |
|
inline |
|
inherited |
References source().
|
virtualinherited |
Reimplemented in MultiFramedRTPSink.
|
inline |
|
friend |
|
friend |
Definition at line 118 of file RTPSink.hh.
References RTPTransmissionStats.
Referenced by RTPTransmissionStats.
|
privateinherited |
Definition at line 67 of file MediaSink.hh.
|
privateinherited |
Definition at line 66 of file MediaSink.hh.
|
private |
Definition at line 146 of file RTPSink.hh.
Referenced by creationTime().
|
protected |
Definition at line 133 of file RTPSink.hh.
Referenced by getCrypto().
|
protected |
Definition at line 128 of file RTPSink.hh.
|
private |
Definition at line 143 of file RTPSink.hh.
Referenced by enableRTCPReports().
|
privateinherited |
|
private |
Definition at line 147 of file RTPSink.hh.
Referenced by estimatedBitrate().
|
privateinherited |
|
protected |
Definition at line 132 of file RTPSink.hh.
|
protected |
Definition at line 127 of file RTPSink.hh.
Referenced by mostRecentPresentationTime().
|
privateinherited |
Definition at line 84 of file Media.hh.
Referenced by nextTask().
|
private |
Definition at line 142 of file RTPSink.hh.
Referenced by nextTimestampHasBeenPreset().
|
private |
Definition at line 145 of file RTPSink.hh.
Referenced by numChannels().
|
protected |
Definition at line 126 of file RTPSink.hh.
Referenced by octetCount().
|
protected |
Definition at line 126 of file RTPSink.hh.
Referenced by packetCount().
|
protected |
Definition at line 124 of file RTPSink.hh.
Referenced by addStreamSocket(), groupsockBeingUsed(), groupsockBeingUsed(), removeStreamSocket(), and setStreamSocket().
|
private |
Definition at line 144 of file RTPSink.hh.
Referenced by rtpPayloadFormatName().
|
protected |
Definition at line 125 of file RTPSink.hh.
Referenced by rtpPayloadType().
|
protected |
Definition at line 129 of file RTPSink.hh.
Referenced by currentSeqNo().
|
protectedinherited |
Definition at line 58 of file MediaSink.hh.
Referenced by source().
|
private |
Definition at line 140 of file RTPSink.hh.
Referenced by SSRC().
|
private |
Definition at line 140 of file RTPSink.hh.
|
private |
Definition at line 141 of file RTPSink.hh.
Referenced by rtpTimestampFrequency(), and setRTPTimestampFrequency().
|
protected |
Definition at line 126 of file RTPSink.hh.
|
private |
Definition at line 149 of file RTPSink.hh.
Referenced by transmissionStatsDB().