|
LunaSysMgr
|
#include <SoundPlayer.h>
Public Member Functions | |
| SoundPlayer () | |
| ~SoundPlayer () | |
| void | play (const std::string &filePath, const std::string &streamClass, bool repeat, int duration) |
| void | stop () |
| bool | dead () const |
| SoundPlayer () | |
| ~SoundPlayer () | |
| void | play (const std::string &filePath, const std::string &streamClass, bool repeat, int duration) |
| void | stop () |
| bool | dead () const |
Static Public Attributes | |
| static int | m_numInstances = 0 |
Protected Member Functions | |
| virtual LSPalmService * | connectToBus () |
| virtual void | connected () |
| void | currentTimeChanged () |
| void | eosChanged () |
| void | sourceChanged () |
| void | errorChanged () |
| void | extendedErrorChanged () |
Simple media playback class to demonstrate a possible way to connect up to the luna bus and use a MediaPlayer object.
| SoundPlayer::SoundPlayer | ( | ) |
Construct a player to play the media content at the given URI.
Constructor: register proxy listener
| SoundPlayer::~SoundPlayer | ( | ) |
Destructor: Stop anything we have going & disconnect proxy listener
| SoundPlayer::SoundPlayer | ( | ) |
Construct a player to play the media content at the given URI.
| SoundPlayer::~SoundPlayer | ( | ) |
|
protectedvirtual |
This simply loads the media source URI and plays it.
|
protectedvirtual |
LunaConnector callback methods
Connect to mediaserver using lunaservice.
|
protected |
MediaPlayerChangeListener callbacks methods
Playback is moving
|
inline |
|
inline |
|
protected |
The end of the stream has been reached (i.e. we played the entire stream).
|
protected |
Errors occur asynchronously. If an error occurs, this will be called.
|
protected |
Errors occur asynchronously. If an error occurs, this will be called.
| void SoundPlayer::play | ( | const std::string & | filePath, |
| const std::string & | streamClass, | ||
| bool | repeat, | ||
| int | duration | ||
| ) |
| void SoundPlayer::play | ( | const std::string & | filePath, |
| const std::string & | streamClass, | ||
| bool | repeat, | ||
| int | duration | ||
| ) |
Client request entry point
|
protected |
The object we are playing was changed.
| void SoundPlayer::stop | ( | ) |
| void SoundPlayer::stop | ( | ) |
Client side cancel point. Also used internally.
|
static |