BasicUDPSink Class Reference

#include <BasicUDPSink.hh>

Inheritance diagram for BasicUDPSink:

Inheritance graph
[legend]
Collaboration diagram for BasicUDPSink:

Collaboration graph
[legend]

Public Types

typedef void( afterPlayingFunc )(void *clientData)

Public Member Functions

Boolean startPlaying (MediaSource &source, afterPlayingFunc *afterFunc, void *afterClientData)
virtual void stopPlaying ()
virtual Boolean isRTPSink () const
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
virtual Boolean isDarwinInjector () const

Static Public Member Functions

static BasicUDPSinkcreateNew (UsageEnvironment &env, Groupsock *gs, unsigned maxPayloadSize=1450)
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

 BasicUDPSink (UsageEnvironment &env, Groupsock *gs, unsigned maxPayloadSize)
virtual ~BasicUDPSink ()
virtual Boolean sourceIsCompatibleWithUs (MediaSource &source)
void onSourceClosure ()
TaskTokennextTask ()

Static Protected Member Functions

static void onSourceClosure (void *clientData)

Protected Attributes

FramedSourcefSource

Private Member Functions

virtual Boolean continuePlaying ()
void continuePlaying1 ()
void afterGettingFrame1 (unsigned frameSize, unsigned numTruncatedBytes, unsigned durationInMicroseconds)

Static Private Member Functions

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

Private Attributes

GroupsockfGS
unsigned fMaxPayloadSize
unsigned char * fOutputBuffer
timeval fNextSendTime

Friends

class MediaLookupTable

Detailed Description

Definition at line 31 of file BasicUDPSink.hh.


Member Typedef Documentation

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

Definition at line 33 of file MediaSink.hh.


Constructor & Destructor Documentation

BasicUDPSink::BasicUDPSink ( UsageEnvironment env,
Groupsock gs,
unsigned  maxPayloadSize 
) [protected]

virtual BasicUDPSink::~BasicUDPSink (  )  [protected, virtual]


Member Function Documentation

static BasicUDPSink* BasicUDPSink::createNew ( UsageEnvironment env,
Groupsock gs,
unsigned  maxPayloadSize = 1450 
) [static]

virtual Boolean BasicUDPSink::continuePlaying (  )  [private, virtual]

Implements MediaSink.

void BasicUDPSink::continuePlaying1 (  )  [private]

static void BasicUDPSink::afterGettingFrame ( void *  clientData,
unsigned  frameSize,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
) [static, private]

void BasicUDPSink::afterGettingFrame1 ( unsigned  frameSize,
unsigned  numTruncatedBytes,
unsigned  durationInMicroseconds 
) [private]

static void BasicUDPSink::sendNext ( void *  firstArg  )  [static, private]

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

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

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

virtual void MediaSink::stopPlaying (  )  [virtual, inherited]

Reimplemented in MultiFramedRTPSink.

virtual Boolean MediaSink::isRTPSink (  )  const [virtual, inherited]

Reimplemented in RTPSink.

FramedSource* MediaSink::source (  )  const [inline, inherited]

Definition at line 42 of file MediaSink.hh.

References MediaSink::fSource.

00042 {return fSource;}

virtual Boolean MediaSink::sourceIsCompatibleWithUs ( MediaSource source  )  [protected, virtual, inherited]

Reimplemented in AMRAudioFileSink, AMRAudioRTPSink, DVVideoRTPSink, H264VideoRTPSink, H265VideoRTPSink, JPEGVideoRTPSink, MPEG1or2VideoRTPSink, and MPEG4ESVideoRTPSink.

static void MediaSink::onSourceClosure ( void *  clientData  )  [static, protected, inherited]

void MediaSink::onSourceClosure (  )  [protected, inherited]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
) [static, inherited]

static void Medium::close ( Medium medium  )  [static, inherited]

UsageEnvironment& Medium::envir (  )  const [inline, inherited]

Definition at line 59 of file Media.hh.

References Medium::fEnviron.

Referenced by MediaSubsession::env(), RTSPServer::RTSPClientSession::envir(), RTSPServer::RTSPClientConnection::envir(), and RTPInterface::envir().

00059 {return fEnviron;}

char const* Medium::name (  )  const [inline, inherited]

Definition at line 61 of file Media.hh.

References Medium::fMediumName.

00061 {return fMediumName;}

virtual Boolean Medium::isSource (  )  const [virtual, inherited]

Reimplemented in MediaSource.

virtual Boolean Medium::isRTCPInstance (  )  const [virtual, inherited]

Reimplemented in RTCPInstance.

virtual Boolean Medium::isRTSPClient (  )  const [virtual, inherited]

Reimplemented in RTSPClient.

virtual Boolean Medium::isRTSPServer (  )  const [virtual, inherited]

Reimplemented in RTSPServer.

virtual Boolean Medium::isMediaSession (  )  const [virtual, inherited]

Reimplemented in MediaSession.

virtual Boolean Medium::isServerMediaSession (  )  const [virtual, inherited]

Reimplemented in ServerMediaSession.

virtual Boolean Medium::isDarwinInjector (  )  const [virtual, inherited]

Reimplemented in DarwinInjector.

TaskToken& Medium::nextTask (  )  [inline, protected, inherited]

Definition at line 78 of file Media.hh.

References Medium::fNextTask.

00078                         {
00079         return fNextTask;
00080   }


Friends And Related Function Documentation

friend class MediaLookupTable [friend, inherited]

Definition at line 74 of file Media.hh.


Field Documentation

Groupsock* BasicUDPSink::fGS [private]

Definition at line 56 of file BasicUDPSink.hh.

unsigned BasicUDPSink::fMaxPayloadSize [private]

Definition at line 57 of file BasicUDPSink.hh.

unsigned char* BasicUDPSink::fOutputBuffer [private]

Definition at line 58 of file BasicUDPSink.hh.

struct timeval BasicUDPSink::fNextSendTime [read, private]

Definition at line 59 of file BasicUDPSink.hh.

FramedSource* MediaSink::fSource [protected, inherited]

Definition at line 58 of file MediaSink.hh.

Referenced by MediaSink::source().


The documentation for this class was generated from the following file:
Generated on Mon Sep 22 12:06:36 2014 for live by  doxygen 1.5.2