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

#include <ServerMediaSession.hh>

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

Public Member Functions

unsigned trackNumber () const
 
char const * trackId ()
 
virtual char const * sdpLines (int addressFamily)=0
 
virtual void getStreamParameters (unsigned clientSessionId, struct sockaddr_storage const &clientAddress, Port const &clientRTPPort, Port const &clientRTCPPort, int tcpSocketNum, unsigned char rtpChannelId, unsigned char rtcpChannelId, TLSState *tlsState, struct sockaddr_storage &destinationAddress, u_int8_t &destinationTTL, Boolean &isMulticast, Port &serverRTPPort, Port &serverRTCPPort, void *&streamToken)=0
 
virtual void startStream (unsigned clientSessionId, void *streamToken, TaskFunc *rtcpRRHandler, void *rtcpRRHandlerClientData, unsigned short &rtpSeqNum, unsigned &rtpTimestamp, ServerRequestAlternativeByteHandler *serverRequestAlternativeByteHandler, void *serverRequestAlternativeByteHandlerClientData)=0
 
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 *&rtpSink, RTCPInstance *&rtcp)=0
 
virtual void deleteStream (unsigned clientSessionId, void *&streamToken)
 
virtual void testScaleFactor (float &scale)
 
virtual float duration () const
 
virtual void getAbsoluteTimeRange (char *&absStartTime, char *&absEndTime) const
 
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

 ServerMediaSubsession (UsageEnvironment &env)
 
virtual ~ServerMediaSubsession ()
 
char const * rangeSDPLine () const
 
TaskTokennextTask ()
 

Protected Attributes

ServerMediaSessionfParentSession
 

Private Attributes

ServerMediaSubsessionfNext
 
unsigned fTrackNumber
 
char const * fTrackId
 
UsageEnvironmentfEnviron
 
char fMediumName [mediumNameMaxLen]
 
TaskToken fNextTask
 

Friends

class ServerMediaSession
 
class ServerMediaSubsessionIterator
 

Detailed Description

Definition at line 123 of file ServerMediaSession.hh.

Constructor & Destructor Documentation

◆ ServerMediaSubsession()

ServerMediaSubsession::ServerMediaSubsession ( UsageEnvironment env)
protected

◆ ~ServerMediaSubsession()

virtual ServerMediaSubsession::~ServerMediaSubsession ( )
protectedvirtual

Member Function Documentation

◆ close() [1/2]

static void Medium::close ( Medium medium)
staticinherited

◆ close() [2/2]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited

◆ deleteStream()

virtual void ServerMediaSubsession::deleteStream ( unsigned  clientSessionId,
void *&  streamToken 
)
virtual

◆ duration()

virtual float ServerMediaSubsession::duration ( ) const
virtual

◆ envir()

UsageEnvironment & Medium::envir ( ) const
inlineinherited

◆ getAbsoluteTimeRange()

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

◆ getCurrentNPT()

virtual float ServerMediaSubsession::getCurrentNPT ( void *  streamToken)
virtual

◆ getRTPSinkandRTCP()

virtual void ServerMediaSubsession::getRTPSinkandRTCP ( void *  streamToken,
RTPSink *&  rtpSink,
RTCPInstance *&  rtcp 
)
pure virtual

◆ getStreamParameters()

virtual void ServerMediaSubsession::getStreamParameters ( unsigned  clientSessionId,
struct sockaddr_storage const &  clientAddress,
Port const &  clientRTPPort,
Port const &  clientRTCPPort,
int  tcpSocketNum,
unsigned char  rtpChannelId,
unsigned char  rtcpChannelId,
TLSState tlsState,
struct sockaddr_storage &  destinationAddress,
u_int8_t &  destinationTTL,
Boolean isMulticast,
Port serverRTPPort,
Port serverRTCPPort,
void *&  streamToken 
)
pure virtual

◆ getStreamSource()

virtual FramedSource * ServerMediaSubsession::getStreamSource ( void *  streamToken)
virtual

Reimplemented in OnDemandServerMediaSubsession.

◆ isMediaSession()

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

◆ isRTCPInstance()

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

◆ isRTSPClient()

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

◆ isRTSPServer()

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

◆ isServerMediaSession()

virtual Boolean Medium::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

◆ isSink()

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

◆ isSource()

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

◆ lookupByName()

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

◆ name()

char const * Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

61{return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:83

References Medium::fMediumName.

◆ nextTask()

TaskToken & Medium::nextTask ( )
inlineprotectedinherited

Definition at line 77 of file Media.hh.

77 {
78 return fNextTask;
79 }
TaskToken fNextTask
Definition: Media.hh:84

References Medium::fNextTask.

◆ nullSeekStream()

virtual void ServerMediaSubsession::nullSeekStream ( unsigned  clientSessionId,
void *  streamToken,
double  streamEndTime,
u_int64_t &  numBytes 
)
virtual

Reimplemented in OnDemandServerMediaSubsession.

◆ pauseStream()

virtual void ServerMediaSubsession::pauseStream ( unsigned  clientSessionId,
void *  streamToken 
)
virtual

◆ rangeSDPLine()

char const * ServerMediaSubsession::rangeSDPLine ( ) const
protected

◆ sdpLines()

virtual char const * ServerMediaSubsession::sdpLines ( int  addressFamily)
pure virtual

◆ seekStream() [1/2]

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

Reimplemented in OnDemandServerMediaSubsession.

◆ seekStream() [2/2]

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

◆ setStreamScale()

virtual void ServerMediaSubsession::setStreamScale ( unsigned  clientSessionId,
void *  streamToken,
float  scale 
)
virtual

◆ startStream()

virtual void ServerMediaSubsession::startStream ( unsigned  clientSessionId,
void *  streamToken,
TaskFunc rtcpRRHandler,
void *  rtcpRRHandlerClientData,
unsigned short &  rtpSeqNum,
unsigned &  rtpTimestamp,
ServerRequestAlternativeByteHandler serverRequestAlternativeByteHandler,
void *  serverRequestAlternativeByteHandlerClientData 
)
pure virtual

◆ testScaleFactor()

virtual void ServerMediaSubsession::testScaleFactor ( float &  scale)
virtual

◆ trackId()

char const * ServerMediaSubsession::trackId ( )

◆ trackNumber()

unsigned ServerMediaSubsession::trackNumber ( ) const
inline

Definition at line 125 of file ServerMediaSession.hh.

125{ return fTrackNumber; }

References fTrackNumber.

Friends And Related Function Documentation

◆ ServerMediaSession

friend class ServerMediaSession
friend

Definition at line 192 of file ServerMediaSession.hh.

◆ ServerMediaSubsessionIterator

friend class ServerMediaSubsessionIterator
friend

Definition at line 193 of file ServerMediaSession.hh.

Field Documentation

◆ fEnviron

UsageEnvironment& Medium::fEnviron
privateinherited

Definition at line 82 of file Media.hh.

Referenced by Medium::envir().

◆ fMediumName

char Medium::fMediumName[mediumNameMaxLen]
privateinherited

Definition at line 83 of file Media.hh.

Referenced by Medium::name().

◆ fNext

ServerMediaSubsession* ServerMediaSubsession::fNext
private

Definition at line 194 of file ServerMediaSession.hh.

◆ fNextTask

TaskToken Medium::fNextTask
privateinherited

Definition at line 84 of file Media.hh.

Referenced by Medium::nextTask().

◆ fParentSession

ServerMediaSession* ServerMediaSubsession::fParentSession
protected

Definition at line 189 of file ServerMediaSession.hh.

◆ fTrackId

char const* ServerMediaSubsession::fTrackId
private

Definition at line 197 of file ServerMediaSession.hh.

◆ fTrackNumber

unsigned ServerMediaSubsession::fTrackNumber
private

Definition at line 196 of file ServerMediaSession.hh.

Referenced by trackNumber().


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