live
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
MatroskaFileServerDemux Class Reference

#include <MatroskaFileServerDemux.hh>

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

Public Types

typedef void() onCreationFunc(MatroskaFileServerDemux *newDemux, void *clientData)
 

Public Member Functions

ServerMediaSubsessionnewServerMediaSubsession ()
 
ServerMediaSubsessionnewServerMediaSubsession (unsigned &resultTrackNumber)
 
ServerMediaSubsessionnewServerMediaSubsessionByTrackNumber (unsigned trackNumber)
 
MatroskaFileourMatroskaFile ()
 
char const * fileName () const
 
float fileDuration () const
 
FramedSourcenewDemuxedTrack (unsigned clientSessionId, unsigned trackNumber)
 
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 void createNew (UsageEnvironment &env, char const *fileName, onCreationFunc *onCreation, void *onCreationClientData, char const *preferredLanguage="eng")
 
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

TaskTokennextTask ()
 

Private Member Functions

 MatroskaFileServerDemux (UsageEnvironment &env, char const *fileName, onCreationFunc *onCreation, void *onCreationClientData, char const *preferredLanguage)
 
virtual ~MatroskaFileServerDemux ()
 
void onMatroskaFileCreation (MatroskaFile *newFile)
 

Static Private Member Functions

static void onMatroskaFileCreation (MatroskaFile *newFile, void *clientData)
 

Private Attributes

char const * fFileName
 
onCreationFuncfOnCreation
 
void * fOnCreationClientData
 
MatroskaFilefOurMatroskaFile
 
u_int8_t fNextTrackTypeToCheck
 
unsigned fLastClientSessionId
 
MatroskaDemuxfLastCreatedDemux
 

Detailed Description

Definition at line 32 of file MatroskaFileServerDemux.hh.

Member Typedef Documentation

◆ onCreationFunc

typedef void() MatroskaFileServerDemux::onCreationFunc(MatroskaFileServerDemux *newDemux, void *clientData)

Definition at line 34 of file MatroskaFileServerDemux.hh.

Constructor & Destructor Documentation

◆ MatroskaFileServerDemux()

MatroskaFileServerDemux::MatroskaFileServerDemux ( UsageEnvironment env,
char const *  fileName,
onCreationFunc onCreation,
void *  onCreationClientData,
char const *  preferredLanguage 
)
private

◆ ~MatroskaFileServerDemux()

virtual MatroskaFileServerDemux::~MatroskaFileServerDemux ( )
privatevirtual

Member Function Documentation

◆ close() [1/2]

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

◆ close() [2/2]

static void Medium::close ( Medium medium)
staticinherited

◆ createNew()

static void MatroskaFileServerDemux::createNew ( UsageEnvironment env,
char const *  fileName,
onCreationFunc onCreation,
void *  onCreationClientData,
char const *  preferredLanguage = "eng" 
)
static

◆ envir()

UsageEnvironment& Medium::envir ( ) const
inlineinherited

◆ fileDuration()

float MatroskaFileServerDemux::fileDuration ( ) const
inline

Definition at line 56 of file MatroskaFileServerDemux.hh.

56 { return fOurMatroskaFile->fileDuration(); }
float fileDuration()

References MatroskaFile::fileDuration(), and fOurMatroskaFile.

◆ fileName()

char const* MatroskaFileServerDemux::fileName ( ) const
inline

Definition at line 55 of file MatroskaFileServerDemux.hh.

55 { return fFileName; }

References fFileName.

◆ 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.

◆ newDemuxedTrack()

FramedSource* MatroskaFileServerDemux::newDemuxedTrack ( unsigned  clientSessionId,
unsigned  trackNumber 
)

◆ newServerMediaSubsession() [1/2]

ServerMediaSubsession* MatroskaFileServerDemux::newServerMediaSubsession ( )

◆ newServerMediaSubsession() [2/2]

ServerMediaSubsession* MatroskaFileServerDemux::newServerMediaSubsession ( unsigned &  resultTrackNumber)

◆ newServerMediaSubsessionByTrackNumber()

ServerMediaSubsession* MatroskaFileServerDemux::newServerMediaSubsessionByTrackNumber ( unsigned  trackNumber)

◆ 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.

◆ onMatroskaFileCreation() [1/2]

static void MatroskaFileServerDemux::onMatroskaFileCreation ( MatroskaFile newFile,
void *  clientData 
)
staticprivate

◆ onMatroskaFileCreation() [2/2]

void MatroskaFileServerDemux::onMatroskaFileCreation ( MatroskaFile newFile)
private

◆ ourMatroskaFile()

MatroskaFile* MatroskaFileServerDemux::ourMatroskaFile ( )
inline

Definition at line 54 of file MatroskaFileServerDemux.hh.

54 { return fOurMatroskaFile; }

References fOurMatroskaFile.

Field Documentation

◆ fFileName

char const* MatroskaFileServerDemux::fFileName
private

Definition at line 71 of file MatroskaFileServerDemux.hh.

Referenced by fileName().

◆ fLastClientSessionId

unsigned MatroskaFileServerDemux::fLastClientSessionId
private

Definition at line 80 of file MatroskaFileServerDemux.hh.

◆ fLastCreatedDemux

MatroskaDemux* MatroskaFileServerDemux::fLastCreatedDemux
private

Definition at line 81 of file MatroskaFileServerDemux.hh.

◆ fNextTrackTypeToCheck

u_int8_t MatroskaFileServerDemux::fNextTrackTypeToCheck
private

Definition at line 77 of file MatroskaFileServerDemux.hh.

◆ fOnCreation

onCreationFunc* MatroskaFileServerDemux::fOnCreation
private

Definition at line 72 of file MatroskaFileServerDemux.hh.

◆ fOnCreationClientData

void* MatroskaFileServerDemux::fOnCreationClientData
private

Definition at line 73 of file MatroskaFileServerDemux.hh.

◆ fOurMatroskaFile

MatroskaFile* MatroskaFileServerDemux::fOurMatroskaFile
private

Definition at line 74 of file MatroskaFileServerDemux.hh.

Referenced by fileDuration(), and ourMatroskaFile().


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