live
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
MediaSink Class Referenceabstract

#include <MediaSink.hh>

Inheritance diagram for MediaSink:
Inheritance graph
[legend]
Collaboration diagram for MediaSink:
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
 

Static Public Member Functions

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

 MediaSink (UsageEnvironment &env)
 
virtual ~MediaSink ()
 
virtual Boolean sourceIsCompatibleWithUs (MediaSource &source)
 
virtual Boolean continuePlaying ()=0
 
void onSourceClosure ()
 
TaskTokennextTask ()
 

Static Protected Member Functions

static void onSourceClosure (void *clientData)
 

Protected Attributes

FramedSourcefSource
 

Private Member Functions

virtual Boolean isSink () const
 

Private Attributes

afterPlayingFuncfAfterFunc
 
void * fAfterClientData
 

Detailed Description

Definition at line 28 of file MediaSink.hh.

Member Typedef Documentation

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

Definition at line 33 of file MediaSink.hh.

Constructor & Destructor Documentation

MediaSink::MediaSink ( UsageEnvironment env)
protected
virtual MediaSink::~MediaSink ( )
protectedvirtual

Member Function Documentation

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
virtual Boolean MediaSink::continuePlaying ( )
protectedpure virtual
UsageEnvironment& Medium::envir ( ) const
inlineinherited
virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

virtual Boolean MediaSink::isRTPSink ( ) const
virtual

Reimplemented in RTPSink.

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

virtual Boolean Medium::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

virtual Boolean MediaSink::isSink ( ) const
privatevirtual

Reimplemented from Medium.

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

static Boolean MediaSink::lookupByName ( UsageEnvironment env,
char const *  sinkName,
MediaSink *&  resultSink 
)
static
static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
char const* Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

References Medium::fMediumName.

61 {return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:83
TaskToken& Medium::nextTask ( )
inlineprotectedinherited

Definition at line 77 of file Media.hh.

References Medium::fNextTask.

77  {
78  return fNextTask;
79  }
TaskToken fNextTask
Definition: Media.hh:84
static void MediaSink::onSourceClosure ( void *  clientData)
staticprotected
void MediaSink::onSourceClosure ( )
protected
FramedSource* MediaSink::source ( ) const
inline

Definition at line 42 of file MediaSink.hh.

References fSource.

42 {return fSource;}
FramedSource * fSource
Definition: MediaSink.hh:58
virtual Boolean MediaSink::sourceIsCompatibleWithUs ( MediaSource source)
protectedvirtual
Boolean MediaSink::startPlaying ( MediaSource source,
afterPlayingFunc afterFunc,
void *  afterClientData 
)
virtual void MediaSink::stopPlaying ( )
virtual

Reimplemented in MultiFramedRTPSink.

Field Documentation

void* MediaSink::fAfterClientData
private

Definition at line 67 of file MediaSink.hh.

afterPlayingFunc* MediaSink::fAfterFunc
private

Definition at line 66 of file MediaSink.hh.

FramedSource* MediaSink::fSource
protected

Definition at line 58 of file MediaSink.hh.

Referenced by source().


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