audioplayer listener interface
More...
#include <audio_player_interface.hh>
audioplayer listener interface
- See also
- IAudioPlayerHandler
◆ mediaStateChanged()
virtual void NuguCapability::IAudioPlayerListener::mediaStateChanged |
( |
AudioPlayerState |
state, |
|
|
const std::string & |
dialog_id |
|
) |
| |
|
pure virtual |
Report this to the user when the state of the audio player changes.
- Parameters
-
[in] | state | audioplayer's state |
[in] | dialog_id | dialog request id |
◆ durationChanged()
virtual void NuguCapability::IAudioPlayerListener::durationChanged |
( |
int |
duration | ) |
|
|
pure virtual |
The audio player reports the total duration of the content being played to the user.
- Parameters
-
[in] | duration | media content's duration |
◆ positionChanged()
virtual void NuguCapability::IAudioPlayerListener::positionChanged |
( |
int |
position | ) |
|
|
pure virtual |
The audio player reports to the user the current playing time of the content being played.
- Parameters
-
[in] | position | media content's position |
◆ favoriteChanged()
virtual void NuguCapability::IAudioPlayerListener::favoriteChanged |
( |
bool |
favorite, |
|
|
const std::string & |
dialog_id |
|
) |
| |
|
pure virtual |
The audio player reports to the user the current content's favorite setting changed.
- Parameters
-
[in] | favorite | media content's favorite |
[in] | dialog_id | dialog request id |
◆ shuffleChanged()
virtual void NuguCapability::IAudioPlayerListener::shuffleChanged |
( |
bool |
shuffle, |
|
|
const std::string & |
dialog_id |
|
) |
| |
|
pure virtual |
The audio player reports to the user the current content's shuffle setting changed.
- Parameters
-
[in] | shuffle | media content's shuffle |
[in] | dialog_id | dialog request id |
◆ repeatChanged()
virtual void NuguCapability::IAudioPlayerListener::repeatChanged |
( |
RepeatType |
repeat, |
|
|
const std::string & |
dialog_id |
|
) |
| |
|
pure virtual |
The audio player reports to the user the current content's repeat setting changed.
- Parameters
-
[in] | repeat | media content's repeat |
[in] | dialog_id | dialog request id |
◆ requestContentCache()
virtual void NuguCapability::IAudioPlayerListener::requestContentCache |
( |
const std::string & |
key, |
|
|
const std::string & |
playurl |
|
) |
| |
|
pure virtual |
The audio player request to the user to cache the content if possible.
- Parameters
-
[in] | key | content's unique key |
[in] | playurl | content's playurl |
◆ requestToGetCachedContent()
virtual bool NuguCapability::IAudioPlayerListener::requestToGetCachedContent |
( |
const std::string & |
key, |
|
|
std::string & |
filepath |
|
) |
| |
|
pure virtual |
The audio player request to the user to get the cached content.
- Parameters
-
[in] | key | content's unique key |
[out] | filepath | cached content's filepath |
- Returns
- return true if cached content, otherwise false
The documentation for this class was generated from the following file: