22 #include "os/OsDefs.h" 23 #include "os/OsStatus.h" 24 #include "os/OsMutex.h" 27 #define MAX_PLAYER_LISTENERS 16 // Max number of player listeners 116 virtual OsStatus
realize(UtlBoolean bBlock =
TRUE) = 0;
123 virtual OsStatus
prefetch(UtlBoolean bBlock =
TRUE) = 0 ;
129 virtual OsStatus
play(UtlBoolean bBlock =
TRUE) = 0 ;
135 virtual OsStatus
pause() = 0 ;
138 virtual OsStatus
stop() = 0 ;
142 virtual OsStatus
destroy() = 0 ;
172 #ifdef MP_STREAM_DEBUG 173 static const char* getEventString(
PlayerState event);
205 #endif // _MpPlayer_h_ Definition: MpPlayer.h:40
Definition: MpPlayer.h:47
Definition: MpPlayerListener.h:34
Definition: MpPlayer.h:101
Definition: MpPlayer.h:191
void fireEvent(PlayerState state)
Definition: MpPlayer.cpp:156
virtual OsStatus prefetch(UtlBoolean bBlock=TRUE)=0
param bBlock - TRUE if the method should block until completion,
MpPlayer()
Definition: MpPlayer.cpp:33
Definition: MpPlayer.h:92
virtual OsStatus play(UtlBoolean bBlock=TRUE)=0
param bBlock - TRUE if the method should block until completion,
Definition: MpPlayer.h:43
OsMutex mListenerLock
Definition: MpPlayer.h:200
PlayerListenerDb mListenerDb[MAX_PLAYER_LISTENERS]
Definition: MpPlayer.h:199
void * pUserData
Definition: MpPlayer.h:195
OsStatus removeListener(MpPlayerListener *pListener)
Definition: MpPlayer.cpp:83
Definition: MpPlayer.h:42
Definition: MpPlayer.h:100
MpPlayerListener * pListener
Definition: MpPlayer.h:194
virtual ~MpPlayer()
Definition: MpPlayer.cpp:45
virtual OsStatus realize(UtlBoolean bBlock=TRUE)=0
Definition: MpPlayer.h:45
#define MAX_PLAYER_LISTENERS
Definition: MpPlayer.h:27
Definition: MpPlayer.h:99
virtual OsStatus destroy()=0
virtual OsStatus getState(PlayerState &state)=0
UtlBoolean isValidStateChange(PlayerState oldState, PlayerState newState)
Definition: MpPlayer.cpp:202
PlayerState
Definition: MpPlayer.h:38
UtlBoolean inUse
Definition: MpPlayer.h:193
Definition: MpPlayer.h:48
Definition: MpPlayer.h:46
Definition: MpPlayer.h:44
virtual OsStatus pause()=0
param bBlock - TRUE if the method should block until completion,
OsStatus addListener(MpPlayerListener *pListener, void *pUserData=NULL)
Definition: MpPlayer.cpp:54
Definition: MpPlayer.h:41
virtual OsStatus stop()=0
#define TRUE
Definition: PlgDefsV1.h:41
playerType
Definition: MpPlayer.h:97