Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

RtspPlayer Class Reference

#include <RtspPlayer.h>

Inheritance diagram for RtspPlayer:

Inheritance graph
[legend]
Collaboration diagram for RtspPlayer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RtspPlayer (MNSelector &sel)
virtual ~RtspPlayer ()
virtual void run ()
void call ()
bool send_describe (const char *url)
bool send_setup ()
bool send_play (int from, int to)
bool send_pause ()
bool send_resume (int pos)
void call_stop (int pos)
bool call_close ()
void call_uninit ()
bool wait_describe_response ()
bool wait_setup_response ()
bool wait_play_response ()
bool wait_pause_response ()
bool wait_resume_response ()
bool wait_stop_response ()
const char * getLastError () const
bool call_set_notify (bool trigger)
bool is_multiplexed_stream ()
SDP::PayloadTypes get_internal_pt ()
SDP::PayloadTypes get_internal_pt (int idx)
int get_rtp_pt (int idx)
const char * getConfig (int idx, int pt)
unsigned int getConfigSize (int idx, int pt)
unsigned getRate (int idx, int pt)
unsigned getNumChannels (int idx, int pt)
int checkBuffer ()
int fillBuffer (unsigned char *buffer, int length)
int checkBuffer (int idx)
int fillBuffer (int idx, unsigned char *buffer, int length)
bool hasBeenSynchronized (int idx)
void getPT (int idx, struct timeval &resPT)
int getSessionsSetup ()
SDP::MNMediaType getMediaType (int idx)

Protected Member Functions

virtual void init_stage_2 ()
 MNRTSPClient::init_state_2.
virtual void open_stage_2 ()
 MNRTSPClient::open_state_2.
virtual void play_stage_2 ()
 MNRTSPClient::play_state_2.
virtual void pause_stage_2 ()
 MNRTSPClient::pause_stage_2.
virtual void stop_stage_2 ()
 MNRTSPClient::stop_state_2.
virtual void init_stage_2_failed (const char *file, int line, const char *text)
 MNRTSPClient::init_state_2_failed.
virtual void open_stage_2_failed (const char *file, int line, const char *text)
 MNRTSPClient::open_state_2_failed.
virtual void play_stage_2_failed (const char *file, int line, const char *text)
 MNRTSPClient::play_state_2_failed.
virtual void pause_stage_2_failed (const char *file, int line, const char *text)
 MNRTSPClient::pause_stage_2_failed.
virtual void stop_stage_2_failed (const char *file, int line, const char *text)
 MNRTSPClient::stop_state_2_failed.
virtual void unknown_stage_2 (const char *file, int line, const char *text)
 MNRTSPClient::unknown_stage_2.

Constructor & Destructor Documentation

RtspPlayer::RtspPlayer MNSelector sel  ) 
 

virtual RtspPlayer::~RtspPlayer  )  [virtual]
 


Member Function Documentation

void RtspPlayer::call  ) 
 

bool RtspPlayer::call_close  ) 
 

bool RtspPlayer::call_set_notify bool  trigger  ) 
 

Called by the GUI to ask the decoder for a notification when the current stream ends. The immediate response is ok or fail. The actual notification is out of band.

void RtspPlayer::call_stop int  pos  ) 
 

void RtspPlayer::call_uninit  ) 
 

int RtspPlayer::checkBuffer int  idx  ) 
 

int RtspPlayer::checkBuffer  ) 
 

int RtspPlayer::fillBuffer int  idx,
unsigned char *  buffer,
int  length
 

int RtspPlayer::fillBuffer unsigned char *  buffer,
int  length
 

SDP::PayloadTypes RtspPlayer::get_internal_pt int  idx  ) 
 

Returns the internal payload type for a given subsession index.

Parameters:
idx Index of media subsession.
Returns:
internal representation of payload type according to SDP::PayloadTypes.

SDP::PayloadTypes RtspPlayer::get_internal_pt  ) 
 

int RtspPlayer::get_rtp_pt int  idx  ) 
 

Returns the payload type as sent by RTP for a given subsession index.

Parameters:
idx Index of media subsession.
Returns:
RTP payload type, which may be dynamic.

const char* RtspPlayer::getConfig int  idx,
int  pt
 

Returns configuration information of subsession as delivered in the SDP media description. Required by mplayer.

Parameters:
idx Index of media subsession. pt Payload Type of track.
Returns:
Configuration information to be processed further.

unsigned int RtspPlayer::getConfigSize int  idx,
int  pt
 

Returns size of configuration information.

const char* RtspPlayer::getLastError  )  const
 

SDP::MNMediaType RtspPlayer::getMediaType int  idx  ) 
 

Returns the media type of a given subsession of a presentation.

unsigned RtspPlayer::getNumChannels int  idx,
int  pt
 

Returns number of channels (only relevant for audio payload types)

void RtspPlayer::getPT int  idx,
struct timeval &  resPT
 

See also:
MNRTSPClient

unsigned RtspPlayer::getRate int  idx,
int  pt
 

Returns default rate of a given subsession and payload type.

int RtspPlayer::getSessionsSetup  ) 
 

Returns number of sessions setup sucessfully.

bool RtspPlayer::hasBeenSynchronized int  idx  ) 
 

See also:
MNRTSPClient

virtual void RtspPlayer::init_stage_2  )  [protected, virtual]
 

MNRTSPClient::init_state_2.

Implements MNRTSPClient.

virtual void RtspPlayer::init_stage_2_failed const char *  file,
int  line,
const char *  text
[protected, virtual]
 

MNRTSPClient::init_state_2_failed.

Implements MNRTSPClient.

bool RtspPlayer::is_multiplexed_stream  ) 
 

virtual void RtspPlayer::open_stage_2  )  [protected, virtual]
 

MNRTSPClient::open_state_2.

Implements MNRTSPClient.

virtual void RtspPlayer::open_stage_2_failed const char *  file,
int  line,
const char *  text
[protected, virtual]
 

MNRTSPClient::open_state_2_failed.

Implements MNRTSPClient.

virtual void RtspPlayer::pause_stage_2  )  [protected, virtual]
 

MNRTSPClient::pause_stage_2.

Implements MNRTSPClient.

virtual void RtspPlayer::pause_stage_2_failed const char *  file,
int  line,
const char *  text
[protected, virtual]
 

MNRTSPClient::pause_stage_2_failed.

Implements MNRTSPClient.

virtual void RtspPlayer::play_stage_2  )  [protected, virtual]
 

MNRTSPClient::play_state_2.

Implements MNRTSPClient.

virtual void RtspPlayer::play_stage_2_failed const char *  file,
int  line,
const char *  text
[protected, virtual]
 

MNRTSPClient::play_state_2_failed.

Implements MNRTSPClient.

virtual void RtspPlayer::run  )  [virtual]
 

Implements MNThread.

bool RtspPlayer::send_describe const char *  url  ) 
 

bool RtspPlayer::send_pause  ) 
 

bool RtspPlayer::send_play int  from,
int  to
 

bool RtspPlayer::send_resume int  pos  ) 
 

bool RtspPlayer::send_setup  ) 
 

virtual void RtspPlayer::stop_stage_2  )  [protected, virtual]
 

MNRTSPClient::stop_state_2.

Implements MNRTSPClient.

virtual void RtspPlayer::stop_stage_2_failed const char *  file,
int  line,
const char *  text
[protected, virtual]
 

MNRTSPClient::stop_state_2_failed.

Implements MNRTSPClient.

virtual void RtspPlayer::unknown_stage_2 const char *  file,
int  line,
const char *  text
[protected, virtual]
 

MNRTSPClient::unknown_stage_2.

Implements MNRTSPClient.

bool RtspPlayer::wait_describe_response  ) 
 

bool RtspPlayer::wait_pause_response  ) 
 

bool RtspPlayer::wait_play_response  ) 
 

bool RtspPlayer::wait_resume_response  ) 
 

bool RtspPlayer::wait_setup_response  ) 
 

bool RtspPlayer::wait_stop_response  ) 
 


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:36:11 2005 for Komssys by doxygen 1.3.8