sipxmedialib  Version 3.3
Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MpPlayer Class Referenceabstract

#include <MpPlayer.h>

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

Classes

struct  PlayerListenerDb
 

Public Types

enum  playerType { STREAM_PLAYER, STREAM_PLAYLIST_PLAYER, STREAM_QUEUE_PLAYER }
 

Public Member Functions

 MpPlayer ()
 
virtual ~MpPlayer ()
 
Manipulators
virtual OsStatus realize (UtlBoolean bBlock=TRUE)=0
 
virtual OsStatus prefetch (UtlBoolean bBlock=TRUE)=0
 param bBlock - TRUE if the method should block until completion, More...
 
virtual OsStatus play (UtlBoolean bBlock=TRUE)=0
 param bBlock - TRUE if the method should block until completion, More...
 
virtual OsStatus pause ()=0
 param bBlock - TRUE if the method should block until completion, More...
 
virtual OsStatus stop ()=0
 
virtual OsStatus destroy ()=0
 
OsStatus addListener (MpPlayerListener *pListener, void *pUserData=NULL)
 
OsStatus removeListener (MpPlayerListener *pListener)
 
Accessors
virtual OsStatus getState (PlayerState &state)=0
 

Protected Member Functions

void fireEvent (PlayerState state)
 
UtlBoolean isValidStateChange (PlayerState oldState, PlayerState newState)
 

Private Attributes

PlayerListenerDb mListenerDb [MAX_PLAYER_LISTENERS]
 
OsMutex mListenerLock
 

Member Enumeration Documentation

enum playerType
Enumerator
STREAM_PLAYER 
STREAM_PLAYLIST_PLAYER 
STREAM_QUEUE_PLAYER 

Constructor & Destructor Documentation

MpPlayer ( )
~MpPlayer ( )
virtual

Member Function Documentation

virtual OsStatus realize ( UtlBoolean  bBlock = TRUE)
pure virtual

Implemented in MpStreamPlaylistPlayer, and MpStreamPlayer.

virtual OsStatus prefetch ( UtlBoolean  bBlock = TRUE)
pure virtual

param bBlock - TRUE if the method should block until completion,

Implemented in MpStreamPlaylistPlayer, and MpStreamPlayer.

virtual OsStatus play ( UtlBoolean  bBlock = TRUE)
pure virtual

param bBlock - TRUE if the method should block until completion,

Implemented in MpStreamPlaylistPlayer, and MpStreamPlayer.

virtual OsStatus pause ( )
pure virtual

param bBlock - TRUE if the method should block until completion,

Implemented in MpStreamPlaylistPlayer, and MpStreamPlayer.

virtual OsStatus stop ( )
pure virtual

Implemented in MpStreamPlaylistPlayer, and MpStreamPlayer.

virtual OsStatus destroy ( )
pure virtual

Implemented in MpStreamPlaylistPlayer, and MpStreamPlayer.

OsStatus addListener ( MpPlayerListener pListener,
void *  pUserData = NULL 
)
OsStatus removeListener ( MpPlayerListener pListener)
virtual OsStatus getState ( PlayerState state)
pure virtual

Implemented in MpStreamPlaylistPlayer, and MpStreamPlayer.

void fireEvent ( PlayerState  state)
protected
UtlBoolean isValidStateChange ( PlayerState  oldState,
PlayerState  newState 
)
protected

Member Data Documentation

PlayerListenerDb mListenerDb[MAX_PLAYER_LISTENERS]
private
OsMutex mListenerLock
private