MPEG1or2DemuxedServerMediaSubsession Class Reference

#include <MPEG1or2DemuxedServerMediaSubsession.hh>

Inheritance diagram for MPEG1or2DemuxedServerMediaSubsession:

Inheritance graph
[legend]
Collaboration diagram for MPEG1or2DemuxedServerMediaSubsession:

Collaboration graph
[legend]

Public Member Functions

void multiplexRTCPWithRTP ()
unsigned trackNumber () const
char const * trackId ()
virtual void testScaleFactor (float &scale)
virtual void getAbsoluteTimeRange (char *&absStartTime, char *&absEndTime) const
void setServerAddressAndPortForSDP (netAddressBits addressBits, portNumBits portBits)
UsageEnvironmentenvir () const
char const * name () const
virtual Boolean isSource () const
virtual Boolean isSink () 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 MPEG1or2DemuxedServerMediaSubsessioncreateNew (MPEG1or2FileServerDemux &demux, u_int8_t streamIdTag, Boolean reuseFirstSource, Boolean iFramesOnly=False, double vshPeriod=5.0)
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

virtual char const * sdpLines ()
virtual void getStreamParameters (unsigned clientSessionId, netAddressBits clientAddress, Port const &clientRTPPort, Port const &clientRTCPPort, int tcpSocketNum, unsigned char rtpChannelId, unsigned char rtcpChannelId, netAddressBits &destinationAddress, u_int8_t &destinationTTL, Boolean &isMulticast, Port &serverRTPPort, Port &serverRTCPPort, void *&streamToken)
virtual void startStream (unsigned clientSessionId, void *streamToken, TaskFunc *rtcpRRHandler, void *rtcpRRHandlerClientData, unsigned short &rtpSeqNum, unsigned &rtpTimestamp, ServerRequestAlternativeByteHandler *serverRequestAlternativeByteHandler, void *serverRequestAlternativeByteHandlerClientData)
virtual void pauseStream (unsigned clientSessionId, void *streamToken)
virtual void seekStream (unsigned clientSessionId, void *streamToken, double &seekNPT, double streamDuration, u_int64_t &numBytes)
virtual void seekStream (unsigned clientSessionId, void *streamToken, char *&absStart, char *&absEnd)
virtual void nullSeekStream (unsigned clientSessionId, void *streamToken, double streamEndTime, u_int64_t &numBytes)
virtual void setStreamScale (unsigned clientSessionId, void *streamToken, float scale)
virtual float getCurrentNPT (void *streamToken)
virtual FramedSourcegetStreamSource (void *streamToken)
virtual void deleteStream (unsigned clientSessionId, void *&streamToken)
virtual char const * getAuxSDPLine (RTPSink *rtpSink, FramedSource *inputSource)
virtual void seekStreamSource (FramedSource *inputSource, char *&absStart, char *&absEnd)
virtual void setStreamSourceScale (FramedSource *inputSource, float scale)
virtual void setStreamSourceDuration (FramedSource *inputSource, double streamDuration, u_int64_t &numBytes)
virtual void closeStreamSource (FramedSource *inputSource)
char const * rangeSDPLine () const
TaskTokennextTask ()

Protected Attributes

char * fSDPLines
HashTablefDestinationsHashTable
ServerMediaSessionfParentSession
netAddressBits fServerAddressForSDP
portNumBits fPortNumForSDP

Private Member Functions

 MPEG1or2DemuxedServerMediaSubsession (MPEG1or2FileServerDemux &demux, u_int8_t streamIdTag, Boolean reuseFirstSource, Boolean iFramesOnly, double vshPeriod)
virtual ~MPEG1or2DemuxedServerMediaSubsession ()
virtual void seekStreamSource (FramedSource *inputSource, double &seekNPT, double streamDuration, u_int64_t &numBytes)
virtual FramedSourcecreateNewStreamSource (unsigned clientSessionId, unsigned &estBitrate)
virtual RTPSinkcreateNewRTPSink (Groupsock *rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource *inputSource)
virtual float duration () const

Private Attributes

MPEG1or2FileServerDemuxfOurDemux
u_int8_t fStreamIdTag
Boolean fIFramesOnly
double fVSHPeriod

Friends

class MediaLookupTable

Detailed Description

Definition at line 32 of file MPEG1or2DemuxedServerMediaSubsession.hh.


Constructor & Destructor Documentation

MPEG1or2DemuxedServerMediaSubsession::MPEG1or2DemuxedServerMediaSubsession ( MPEG1or2FileServerDemux demux,
u_int8_t  streamIdTag,
Boolean  reuseFirstSource,
Boolean  iFramesOnly,
double  vshPeriod 
) [private]

virtual MPEG1or2DemuxedServerMediaSubsession::~MPEG1or2DemuxedServerMediaSubsession (  )  [private, virtual]


Member Function Documentation

static MPEG1or2DemuxedServerMediaSubsession* MPEG1or2DemuxedServerMediaSubsession::createNew ( MPEG1or2FileServerDemux demux,
u_int8_t  streamIdTag,
Boolean  reuseFirstSource,
Boolean  iFramesOnly = False,
double  vshPeriod = 5.0 
) [static]

virtual void MPEG1or2DemuxedServerMediaSubsession::seekStreamSource ( FramedSource inputSource,
double &  seekNPT,
double  streamDuration,
u_int64_t &  numBytes 
) [private, virtual]

Reimplemented from OnDemandServerMediaSubsession.

virtual FramedSource* MPEG1or2DemuxedServerMediaSubsession::createNewStreamSource ( unsigned  clientSessionId,
unsigned &  estBitrate 
) [private, virtual]

Implements OnDemandServerMediaSubsession.

virtual RTPSink* MPEG1or2DemuxedServerMediaSubsession::createNewRTPSink ( Groupsock rtpGroupsock,
unsigned char  rtpPayloadTypeIfDynamic,
FramedSource inputSource 
) [private, virtual]

Implements OnDemandServerMediaSubsession.

virtual float MPEG1or2DemuxedServerMediaSubsession::duration (  )  const [private, virtual]

Reimplemented from ServerMediaSubsession.

virtual char const* OnDemandServerMediaSubsession::sdpLines (  )  [protected, virtual, inherited]

Implements ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::getStreamParameters ( unsigned  clientSessionId,
netAddressBits  clientAddress,
Port const &  clientRTPPort,
Port const &  clientRTCPPort,
int  tcpSocketNum,
unsigned char  rtpChannelId,
unsigned char  rtcpChannelId,
netAddressBits destinationAddress,
u_int8_t &  destinationTTL,
Boolean isMulticast,
Port serverRTPPort,
Port serverRTCPPort,
void *&  streamToken 
) [protected, virtual, inherited]

Implements ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::startStream ( unsigned  clientSessionId,
void *  streamToken,
TaskFunc rtcpRRHandler,
void *  rtcpRRHandlerClientData,
unsigned short &  rtpSeqNum,
unsigned &  rtpTimestamp,
ServerRequestAlternativeByteHandler serverRequestAlternativeByteHandler,
void *  serverRequestAlternativeByteHandlerClientData 
) [protected, virtual, inherited]

Implements ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::pauseStream ( unsigned  clientSessionId,
void *  streamToken 
) [protected, virtual, inherited]

Reimplemented from ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::seekStream ( unsigned  clientSessionId,
void *  streamToken,
double &  seekNPT,
double  streamDuration,
u_int64_t &  numBytes 
) [protected, virtual, inherited]

Reimplemented from ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::seekStream ( unsigned  clientSessionId,
void *  streamToken,
char *&  absStart,
char *&  absEnd 
) [protected, virtual, inherited]

Reimplemented from ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::nullSeekStream ( unsigned  clientSessionId,
void *  streamToken,
double  streamEndTime,
u_int64_t &  numBytes 
) [protected, virtual, inherited]

Reimplemented from ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::setStreamScale ( unsigned  clientSessionId,
void *  streamToken,
float  scale 
) [protected, virtual, inherited]

Reimplemented from ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

virtual float OnDemandServerMediaSubsession::getCurrentNPT ( void *  streamToken  )  [protected, virtual, inherited]

Reimplemented from ServerMediaSubsession.

virtual FramedSource* OnDemandServerMediaSubsession::getStreamSource ( void *  streamToken  )  [protected, virtual, inherited]

Reimplemented from ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::deleteStream ( unsigned  clientSessionId,
void *&  streamToken 
) [protected, virtual, inherited]

Reimplemented from ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

virtual char const* OnDemandServerMediaSubsession::getAuxSDPLine ( RTPSink rtpSink,
FramedSource inputSource 
) [protected, virtual, inherited]

Reimplemented in DVVideoFileServerMediaSubsession, H264VideoFileServerMediaSubsession, H265VideoFileServerMediaSubsession, and MPEG4VideoFileServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::seekStreamSource ( FramedSource inputSource,
char *&  absStart,
char *&  absEnd 
) [protected, virtual, inherited]

virtual void OnDemandServerMediaSubsession::setStreamSourceScale ( FramedSource inputSource,
float  scale 
) [protected, virtual, inherited]

Reimplemented in MP3AudioFileServerMediaSubsession, and WAVAudioFileServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::setStreamSourceDuration ( FramedSource inputSource,
double  streamDuration,
u_int64_t &  numBytes 
) [protected, virtual, inherited]

Reimplemented in DVVideoFileServerMediaSubsession, and WAVAudioFileServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::closeStreamSource ( FramedSource inputSource  )  [protected, virtual, inherited]

void OnDemandServerMediaSubsession::multiplexRTCPWithRTP (  )  [inline, inherited]

Definition at line 102 of file OnDemandServerMediaSubsession.hh.

References OnDemandServerMediaSubsession::fMultiplexRTCPWithRTP, and True.

unsigned ServerMediaSubsession::trackNumber (  )  const [inline, inherited]

Definition at line 126 of file ServerMediaSession.hh.

References ServerMediaSubsession::fTrackNumber.

00126 { return fTrackNumber; }

char const* ServerMediaSubsession::trackId (  )  [inherited]

virtual void ServerMediaSubsession::testScaleFactor ( float &  scale  )  [virtual, inherited]

Reimplemented in MP3AudioFileServerMediaSubsession, MPEG2TransportFileServerMediaSubsession, and WAVAudioFileServerMediaSubsession.

virtual void ServerMediaSubsession::getAbsoluteTimeRange ( char *&  absStartTime,
char *&  absEndTime 
) const [virtual, inherited]

void ServerMediaSubsession::setServerAddressAndPortForSDP ( netAddressBits  addressBits,
portNumBits  portBits 
) [inherited]

char const* ServerMediaSubsession::rangeSDPLine (  )  const [protected, inherited]

static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
) [static, 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::isSink (  )  const [virtual, inherited]

Reimplemented in MediaSink.

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

MPEG1or2FileServerDemux& MPEG1or2DemuxedServerMediaSubsession::fOurDemux [private]

Definition at line 57 of file MPEG1or2DemuxedServerMediaSubsession.hh.

u_int8_t MPEG1or2DemuxedServerMediaSubsession::fStreamIdTag [private]

Definition at line 58 of file MPEG1or2DemuxedServerMediaSubsession.hh.

Boolean MPEG1or2DemuxedServerMediaSubsession::fIFramesOnly [private]

Definition at line 59 of file MPEG1or2DemuxedServerMediaSubsession.hh.

double MPEG1or2DemuxedServerMediaSubsession::fVSHPeriod [private]

Definition at line 60 of file MPEG1or2DemuxedServerMediaSubsession.hh.

char* OnDemandServerMediaSubsession::fSDPLines [protected, inherited]

Definition at line 111 of file OnDemandServerMediaSubsession.hh.

HashTable* OnDemandServerMediaSubsession::fDestinationsHashTable [protected, inherited]

Definition at line 112 of file OnDemandServerMediaSubsession.hh.

ServerMediaSession* ServerMediaSubsession::fParentSession [protected, inherited]

Definition at line 188 of file ServerMediaSession.hh.

netAddressBits ServerMediaSubsession::fServerAddressForSDP [protected, inherited]

Definition at line 189 of file ServerMediaSession.hh.

portNumBits ServerMediaSubsession::fPortNumForSDP [protected, inherited]

Definition at line 190 of file ServerMediaSession.hh.


The documentation for this class was generated from the following file:
Generated on Wed Dec 17 07:47:01 2014 for live by  doxygen 1.5.2