live
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
OnDemandServerMediaSubsession Class Referenceabstract

#include <OnDemandServerMediaSubsession.hh>

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

Public Member Functions

void multiplexRTCPWithRTP ()
 
void setRTCPAppPacketHandler (RTCPAppHandlerFunc *handler, void *clientData)
 
void sendRTCPAppPacket (u_int8_t subtype, char const *name, u_int8_t *appDependentData, unsigned appDependentDataSize)
 
unsigned trackNumber () const
 
char const * trackId ()
 
virtual void testScaleFactor (float &scale)
 
virtual float duration () const
 
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
 

Static Public Member Functions

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

 OnDemandServerMediaSubsession (UsageEnvironment &env, Boolean reuseFirstSource, portNumBits initialPortNum=6970, Boolean multiplexRTCPWithRTP=False)
 
virtual ~OnDemandServerMediaSubsession ()
 
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 getRTPSinkandRTCP (void *streamToken, RTPSink const *&rtpSink, RTCPInstance const *&rtcp)
 
virtual void deleteStream (unsigned clientSessionId, void *&streamToken)
 
virtual char const * getAuxSDPLine (RTPSink *rtpSink, FramedSource *inputSource)
 
virtual void seekStreamSource (FramedSource *inputSource, double &seekNPT, double streamDuration, u_int64_t &numBytes)
 
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)
 
virtual FramedSourcecreateNewStreamSource (unsigned clientSessionId, unsigned &estBitrate)=0
 
virtual RTPSinkcreateNewRTPSink (Groupsock *rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource *inputSource)=0
 
virtual GroupsockcreateGroupsock (struct in_addr const &addr, Port port)
 
virtual RTCPInstancecreateRTCP (Groupsock *RTCPgs, unsigned totSessionBW, unsigned char const *cname, RTPSink *sink)
 
char const * rangeSDPLine () const
 
TaskTokennextTask ()
 

Protected Attributes

char * fSDPLines
 
HashTablefDestinationsHashTable
 
ServerMediaSessionfParentSession
 
netAddressBits fServerAddressForSDP
 
portNumBits fPortNumForSDP
 

Private Member Functions

void setSDPLinesFromRTPSink (RTPSink *rtpSink, FramedSource *inputSource, unsigned estBitrate)
 

Private Attributes

Boolean fReuseFirstSource
 
portNumBits fInitialPortNum
 
Boolean fMultiplexRTCPWithRTP
 
void * fLastStreamToken
 
char fCNAME [100]
 
RTCPAppHandlerFuncfAppHandlerTask
 
void * fAppHandlerClientData
 

Friends

class StreamState
 

Detailed Description

Definition at line 38 of file OnDemandServerMediaSubsession.hh.

Constructor & Destructor Documentation

OnDemandServerMediaSubsession::OnDemandServerMediaSubsession ( UsageEnvironment env,
Boolean  reuseFirstSource,
portNumBits  initialPortNum = 6970,
Boolean  multiplexRTCPWithRTP = False 
)
protected
virtual OnDemandServerMediaSubsession::~OnDemandServerMediaSubsession ( )
protectedvirtual

Member Function Documentation

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
virtual void OnDemandServerMediaSubsession::closeStreamSource ( FramedSource inputSource)
protectedvirtual
virtual Groupsock* OnDemandServerMediaSubsession::createGroupsock ( struct in_addr const &  addr,
Port  port 
)
protectedvirtual
virtual RTPSink* OnDemandServerMediaSubsession::createNewRTPSink ( Groupsock rtpGroupsock,
unsigned char  rtpPayloadTypeIfDynamic,
FramedSource inputSource 
)
protectedpure virtual
virtual FramedSource* OnDemandServerMediaSubsession::createNewStreamSource ( unsigned  clientSessionId,
unsigned &  estBitrate 
)
protectedpure virtual
virtual RTCPInstance* OnDemandServerMediaSubsession::createRTCP ( Groupsock RTCPgs,
unsigned  totSessionBW,
unsigned char const *  cname,
RTPSink sink 
)
protectedvirtual
virtual void OnDemandServerMediaSubsession::deleteStream ( unsigned  clientSessionId,
void *&  streamToken 
)
protectedvirtual

Reimplemented from ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

virtual float ServerMediaSubsession::duration ( ) const
virtualinherited
UsageEnvironment& Medium::envir ( ) const
inlineinherited
virtual void ServerMediaSubsession::getAbsoluteTimeRange ( char *&  absStartTime,
char *&  absEndTime 
) const
virtualinherited
virtual char const* OnDemandServerMediaSubsession::getAuxSDPLine ( RTPSink rtpSink,
FramedSource inputSource 
)
protectedvirtual
virtual float OnDemandServerMediaSubsession::getCurrentNPT ( void *  streamToken)
protectedvirtual

Reimplemented from ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::getRTPSinkandRTCP ( void *  streamToken,
RTPSink const *&  rtpSink,
RTCPInstance const *&  rtcp 
)
protectedvirtual

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 
)
protectedvirtual

Implements ServerMediaSubsession.

virtual FramedSource* OnDemandServerMediaSubsession::getStreamSource ( void *  streamToken)
protectedvirtual

Reimplemented from ServerMediaSubsession.

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

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 Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

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

Definition at line 109 of file OnDemandServerMediaSubsession.hh.

References fMultiplexRTCPWithRTP, and True.

const Boolean True
Definition: Boolean.hh:31
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
virtual void OnDemandServerMediaSubsession::nullSeekStream ( unsigned  clientSessionId,
void *  streamToken,
double  streamEndTime,
u_int64_t &  numBytes 
)
protectedvirtual

Reimplemented from ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::pauseStream ( unsigned  clientSessionId,
void *  streamToken 
)
protectedvirtual

Reimplemented from ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

char const* ServerMediaSubsession::rangeSDPLine ( ) const
protectedinherited
virtual char const* OnDemandServerMediaSubsession::sdpLines ( )
protectedvirtual

Implements ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::seekStream ( unsigned  clientSessionId,
void *  streamToken,
double &  seekNPT,
double  streamDuration,
u_int64_t &  numBytes 
)
protectedvirtual

Reimplemented from ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::seekStream ( unsigned  clientSessionId,
void *  streamToken,
char *&  absStart,
char *&  absEnd 
)
protectedvirtual

Reimplemented from ServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::seekStreamSource ( FramedSource inputSource,
double &  seekNPT,
double  streamDuration,
u_int64_t &  numBytes 
)
protectedvirtual
virtual void OnDemandServerMediaSubsession::seekStreamSource ( FramedSource inputSource,
char *&  absStart,
char *&  absEnd 
)
protectedvirtual
void OnDemandServerMediaSubsession::sendRTCPAppPacket ( u_int8_t  subtype,
char const *  name,
u_int8_t *  appDependentData,
unsigned  appDependentDataSize 
)
void OnDemandServerMediaSubsession::setRTCPAppPacketHandler ( RTCPAppHandlerFunc handler,
void *  clientData 
)
void OnDemandServerMediaSubsession::setSDPLinesFromRTPSink ( RTPSink rtpSink,
FramedSource inputSource,
unsigned  estBitrate 
)
private
void ServerMediaSubsession::setServerAddressAndPortForSDP ( netAddressBits  addressBits,
portNumBits  portBits 
)
inherited
virtual void OnDemandServerMediaSubsession::setStreamScale ( unsigned  clientSessionId,
void *  streamToken,
float  scale 
)
protectedvirtual

Reimplemented from ServerMediaSubsession.

Reimplemented in MPEG2TransportFileServerMediaSubsession.

virtual void OnDemandServerMediaSubsession::setStreamSourceDuration ( FramedSource inputSource,
double  streamDuration,
u_int64_t &  numBytes 
)
protectedvirtual
virtual void OnDemandServerMediaSubsession::setStreamSourceScale ( FramedSource inputSource,
float  scale 
)
protectedvirtual
virtual void OnDemandServerMediaSubsession::startStream ( unsigned  clientSessionId,
void *  streamToken,
TaskFunc rtcpRRHandler,
void *  rtcpRRHandlerClientData,
unsigned short &  rtpSeqNum,
unsigned &  rtpTimestamp,
ServerRequestAlternativeByteHandler serverRequestAlternativeByteHandler,
void *  serverRequestAlternativeByteHandlerClientData 
)
protectedvirtual
virtual void ServerMediaSubsession::testScaleFactor ( float &  scale)
virtualinherited
char const* ServerMediaSubsession::trackId ( )
inherited
unsigned ServerMediaSubsession::trackNumber ( ) const
inlineinherited

Definition at line 122 of file ServerMediaSession.hh.

References ServerMediaSubsession::fTrackNumber.

122 { return fTrackNumber; }

Friends And Related Function Documentation

friend class StreamState
friend

Definition at line 145 of file OnDemandServerMediaSubsession.hh.

Field Documentation

void* OnDemandServerMediaSubsession::fAppHandlerClientData
private

Definition at line 144 of file OnDemandServerMediaSubsession.hh.

RTCPAppHandlerFunc* OnDemandServerMediaSubsession::fAppHandlerTask
private

Definition at line 143 of file OnDemandServerMediaSubsession.hh.

char OnDemandServerMediaSubsession::fCNAME[100]
private

Definition at line 142 of file OnDemandServerMediaSubsession.hh.

HashTable* OnDemandServerMediaSubsession::fDestinationsHashTable
protected

Definition at line 135 of file OnDemandServerMediaSubsession.hh.

portNumBits OnDemandServerMediaSubsession::fInitialPortNum
private

Definition at line 139 of file OnDemandServerMediaSubsession.hh.

void* OnDemandServerMediaSubsession::fLastStreamToken
private

Definition at line 141 of file OnDemandServerMediaSubsession.hh.

Boolean OnDemandServerMediaSubsession::fMultiplexRTCPWithRTP
private

Definition at line 140 of file OnDemandServerMediaSubsession.hh.

Referenced by multiplexRTCPWithRTP().

ServerMediaSession* ServerMediaSubsession::fParentSession
protectedinherited

Definition at line 190 of file ServerMediaSession.hh.

portNumBits ServerMediaSubsession::fPortNumForSDP
protectedinherited

Definition at line 192 of file ServerMediaSession.hh.

Boolean OnDemandServerMediaSubsession::fReuseFirstSource
private

Definition at line 138 of file OnDemandServerMediaSubsession.hh.

char* OnDemandServerMediaSubsession::fSDPLines
protected

Definition at line 134 of file OnDemandServerMediaSubsession.hh.

netAddressBits ServerMediaSubsession::fServerAddressForSDP
protectedinherited

Definition at line 191 of file ServerMediaSession.hh.


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