sipxmedialib
Version 3.3
|
#include <MpStreamQueuePlayer.h>
Classes | |
struct | PlayerListenerDb |
struct | PlaylistQueue |
Public Types | |
enum | SourceType { SourceUrl, SourceBuffer } |
Public Member Functions | |
Creators | |
MpStreamQueuePlayer (OsMsgQ *pMsgQ, const char *pTarget=NULL) | |
virtual | ~MpStreamQueuePlayer () |
Manipulators | |
virtual OsStatus | add (Url &url, int flags) |
virtual OsStatus | add (UtlString *pBuffer, int flags) |
virtual OsStatus | play () |
param pBuffer - Net Buffer containing buffered audio data. The More... | |
virtual OsStatus | reset () |
virtual OsStatus | destroy () |
virtual OsStatus | clear () |
virtual OsStatus | wait (const OsTime &rTimeout=OsTime::OS_INFINITY) |
OsStatus | addListener (MpQueuePlayerListener *pListener) |
OsStatus | removeListener (MpQueuePlayerListener *pListener) |
Inquiry | |
UtlBoolean | isPlaying () |
Protected Member Functions | |
MpStreamQueuePlayer (const MpStreamQueuePlayer &rMpStreamQueuePlayer) | |
MpStreamQueuePlayer & | operator= (const MpStreamQueuePlayer &rhs) |
virtual UtlBoolean | handleMessage (OsMsg &rMsg) |
void | handleReset () |
void | handlePlayNext () |
void | handleDequeue () |
void | handleRemoveFailed () |
UtlBoolean | isPlayingStream (MpPlayer *pPlayer) |
void | setFailedPlayer (MpPlayer *pPlayer) |
virtual void | playerRealized (MpPlayerEvent &event) |
virtual void | playerPrefetched (MpPlayerEvent &event) |
virtual void | playerPlaying (MpPlayerEvent &event) |
virtual void | playerPaused (MpPlayerEvent &event) |
virtual void | playerStopped (MpPlayerEvent &event) |
virtual void | playerFailed (MpPlayerEvent &event) |
void | fireQueuePlayerStarted () |
void | fireQueuePlayerStopped () |
void | fireQueuePlayerAdvanced () |
Protected Member Functions inherited from MpPlayerListener | |
virtual | ~MpPlayerListener () |
Private Types | |
enum | { EVENT_DEQUEUE, EVENT_PLAY_NEXT, EVENT_REMOVE_FAILED, EVENT_PLAY_RESET } |
Private Member Functions | |
int | expandQueue (struct PlaylistQueue *&queue, int currentLength, int desiredLength) |
void | swapQueues (struct PlaylistQueue *&queue1, int &queueLength1, struct PlaylistQueue *&queue2, int &queueLength2) |
Private Attributes | |
OsMsgQ * | mpMsgQ |
UtlString | mTarget |
OsBSem | mSemQueueChange |
OsBSem | mSemWaitSynch |
OsQueuedEvent * | mpQueueEvent |
struct PlaylistQueue * | mToPlayQueue |
int | mToPlayQueueLength |
int | mNumToPlayElements |
struct PlaylistQueue * | mPlayingQueue |
int | mPlayingQueueLength |
int | mNumPlayingElements |
UtlBoolean | mbFatalError |
PlayerListenerDb | mListenerDb [MAX_PLAYER_LISTENERS] |
OsRWMutex | mListenerMutex |
enum SourceType |
MpStreamQueuePlayer | ( | OsMsgQ * | pMsgQ, |
const char * | pTarget = NULL |
||
) |
|
virtual |
|
protected |
|
virtual |
|
virtual |
param url - Url identifing the source data stream param flags - Playing flags (see StreamDefs.h)
|
virtual |
param pBuffer - Net Buffer containing buffered audio data. The
param flags - Playing flags (see StreamDefs.h)
|
virtual |
|
virtual |
|
virtual |
|
virtual |
OsStatus addListener | ( | MpQueuePlayerListener * | pListener | ) |
OsStatus removeListener | ( | MpQueuePlayerListener * | pListener | ) |
UtlBoolean isPlaying | ( | ) |
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Implements MpPlayerListener.
|
protectedvirtual |
Implements MpPlayerListener.
|
protectedvirtual |
Implements MpPlayerListener.
|
protectedvirtual |
Implements MpPlayerListener.
|
protectedvirtual |
Implements MpPlayerListener.
|
protectedvirtual |
Implements MpPlayerListener.
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |