live
Public Member Functions | Private Attributes
StreamState Class Reference

#include <OnDemandServerMediaSubsession.hh>

Collaboration diagram for StreamState:
Collaboration graph
[legend]

Public Member Functions

 StreamState (OnDemandServerMediaSubsession &master, Port const &serverRTPPort, Port const &serverRTCPPort, RTPSink *rtpSink, BasicUDPSink *udpSink, unsigned totalBW, FramedSource *mediaSource, Groupsock *rtpGS, Groupsock *rtcpGS)
 
virtual ~StreamState ()
 
void startPlaying (Destinations *destinations, unsigned clientSessionId, TaskFunc *rtcpRRHandler, void *rtcpRRHandlerClientData, ServerRequestAlternativeByteHandler *serverRequestAlternativeByteHandler, void *serverRequestAlternativeByteHandlerClientData)
 
void pause ()
 
void sendRTCPAppPacket (u_int8_t subtype, char const *name, u_int8_t *appDependentData, unsigned appDependentDataSize)
 
void endPlaying (Destinations *destinations, unsigned clientSessionId)
 
void reclaim ()
 
unsigned & referenceCount ()
 
Port const & serverRTPPort () const
 
Port const & serverRTCPPort () const
 
RTPSinkrtpSink () const
 
RTCPInstancertcpInstance () const
 
float streamDuration () const
 
FramedSourcemediaSource () const
 
float & startNPT ()
 

Private Attributes

OnDemandServerMediaSubsessionfMaster
 
Boolean fAreCurrentlyPlaying
 
unsigned fReferenceCount
 
Port fServerRTPPort
 
Port fServerRTCPPort
 
RTPSinkfRTPSink
 
BasicUDPSinkfUDPSink
 
float fStreamDuration
 
unsigned fTotalBW
 
RTCPInstancefRTCPInstance
 
FramedSourcefMediaSource
 
float fStartNPT
 
GroupsockfRTPgs
 
GroupsockfRTCPgs
 

Detailed Description

Definition at line 178 of file OnDemandServerMediaSubsession.hh.

Constructor & Destructor Documentation

◆ StreamState()

StreamState::StreamState ( OnDemandServerMediaSubsession master,
Port const &  serverRTPPort,
Port const &  serverRTCPPort,
RTPSink rtpSink,
BasicUDPSink udpSink,
unsigned  totalBW,
FramedSource mediaSource,
Groupsock rtpGS,
Groupsock rtcpGS 
)

◆ ~StreamState()

virtual StreamState::~StreamState ( )
virtual

Member Function Documentation

◆ endPlaying()

void StreamState::endPlaying ( Destinations destinations,
unsigned  clientSessionId 
)

◆ mediaSource()

FramedSource* StreamState::mediaSource ( ) const
inline

Definition at line 207 of file OnDemandServerMediaSubsession.hh.

207 { return fMediaSource; }

References fMediaSource.

◆ pause()

void StreamState::pause ( )

◆ reclaim()

void StreamState::reclaim ( )

◆ referenceCount()

unsigned& StreamState::referenceCount ( )
inline

Definition at line 197 of file OnDemandServerMediaSubsession.hh.

197 { return fReferenceCount; }

References fReferenceCount.

◆ rtcpInstance()

RTCPInstance* StreamState::rtcpInstance ( ) const
inline

Definition at line 203 of file OnDemandServerMediaSubsession.hh.

203 { return fRTCPInstance; }

References fRTCPInstance.

◆ rtpSink()

RTPSink* StreamState::rtpSink ( ) const
inline

Definition at line 202 of file OnDemandServerMediaSubsession.hh.

202 { return fRTPSink; }

References fRTPSink.

◆ sendRTCPAppPacket()

void StreamState::sendRTCPAppPacket ( u_int8_t  subtype,
char const *  name,
u_int8_t *  appDependentData,
unsigned  appDependentDataSize 
)

◆ serverRTCPPort()

Port const& StreamState::serverRTCPPort ( ) const
inline

Definition at line 200 of file OnDemandServerMediaSubsession.hh.

References fServerRTCPPort.

◆ serverRTPPort()

Port const& StreamState::serverRTPPort ( ) const
inline

Definition at line 199 of file OnDemandServerMediaSubsession.hh.

References fServerRTPPort.

◆ startNPT()

float& StreamState::startNPT ( )
inline

Definition at line 208 of file OnDemandServerMediaSubsession.hh.

208 { return fStartNPT; }

References fStartNPT.

◆ startPlaying()

void StreamState::startPlaying ( Destinations destinations,
unsigned  clientSessionId,
TaskFunc rtcpRRHandler,
void *  rtcpRRHandlerClientData,
ServerRequestAlternativeByteHandler serverRequestAlternativeByteHandler,
void *  serverRequestAlternativeByteHandlerClientData 
)

◆ streamDuration()

float StreamState::streamDuration ( ) const
inline

Definition at line 205 of file OnDemandServerMediaSubsession.hh.

205 { return fStreamDuration; }

References fStreamDuration.

Field Documentation

◆ fAreCurrentlyPlaying

Boolean StreamState::fAreCurrentlyPlaying
private

Definition at line 212 of file OnDemandServerMediaSubsession.hh.

◆ fMaster

OnDemandServerMediaSubsession& StreamState::fMaster
private

Definition at line 211 of file OnDemandServerMediaSubsession.hh.

◆ fMediaSource

FramedSource* StreamState::fMediaSource
private

Definition at line 224 of file OnDemandServerMediaSubsession.hh.

Referenced by mediaSource().

◆ fReferenceCount

unsigned StreamState::fReferenceCount
private

Definition at line 213 of file OnDemandServerMediaSubsession.hh.

Referenced by referenceCount().

◆ fRTCPgs

Groupsock* StreamState::fRTCPgs
private

Definition at line 228 of file OnDemandServerMediaSubsession.hh.

◆ fRTCPInstance

RTCPInstance* StreamState::fRTCPInstance
private

Definition at line 222 of file OnDemandServerMediaSubsession.hh.

Referenced by rtcpInstance().

◆ fRTPgs

Groupsock* StreamState::fRTPgs
private

Definition at line 227 of file OnDemandServerMediaSubsession.hh.

◆ fRTPSink

RTPSink* StreamState::fRTPSink
private

Definition at line 217 of file OnDemandServerMediaSubsession.hh.

Referenced by rtpSink().

◆ fServerRTCPPort

Port StreamState::fServerRTCPPort
private

Definition at line 215 of file OnDemandServerMediaSubsession.hh.

Referenced by serverRTCPPort().

◆ fServerRTPPort

Port StreamState::fServerRTPPort
private

Definition at line 215 of file OnDemandServerMediaSubsession.hh.

Referenced by serverRTPPort().

◆ fStartNPT

float StreamState::fStartNPT
private

Definition at line 225 of file OnDemandServerMediaSubsession.hh.

Referenced by startNPT().

◆ fStreamDuration

float StreamState::fStreamDuration
private

Definition at line 220 of file OnDemandServerMediaSubsession.hh.

Referenced by streamDuration().

◆ fTotalBW

unsigned StreamState::fTotalBW
private

Definition at line 221 of file OnDemandServerMediaSubsession.hh.

◆ fUDPSink

BasicUDPSink* StreamState::fUDPSink
private

Definition at line 218 of file OnDemandServerMediaSubsession.hh.


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