17 #ifndef __NUGU_AUDIO_PLAYER_INTERFACE_H__
18 #define __NUGU_AUDIO_PLAYER_INTERFACE_H__
24 namespace NuguCapability {
26 using namespace NuguClientKit;
177 virtual void updateMetaData(
const std::string&
id,
const std::string& json_payload) = 0;
193 virtual std::string
play() = 0;
200 virtual std::string
stop(
bool direct_access =
false) = 0;
206 virtual std::string
next() = 0;
212 virtual std::string
prev() = 0;
219 virtual std::string
pause(
bool direct_access =
false) = 0;
226 virtual std::string
resume(
bool direct_access =
false) = 0;
232 virtual void seek(
int msec) = 0;
audioplayer's display listener interface
Definition: audio_player_interface.hh:146
virtual bool showLyrics(const std::string &id)=0
Request to the user to show the lyrics page.
virtual void updateMetaData(const std::string &id, const std::string &json_payload)=0
Request to update metadata the current display.
virtual bool requestLyricsPageAvailable(const std::string &id, bool &visible)=0
SDK request information about device's lyrics page available.
virtual bool hideLyrics(const std::string &id)=0
Request to the user to hide the lyrics page.
audioplayer handler interface
Definition: audio_player_interface.hh:185
virtual bool setMute(bool mute)=0
set media player's mute
virtual void removeListener(IAudioPlayerListener *listener)=0
Remove the Listener object.
virtual void addListener(IAudioPlayerListener *listener)=0
Add the Listener object.
virtual bool setVolume(int volume)=0
set media player's volume
virtual std::string requestShuffleCommand(bool current_shuffle)=0
Send to request shuffle command event with current shuffle value.
virtual std::string play()=0
Request the audio player to play the current content.
virtual std::string stop(bool direct_access=false)=0
Request the audio player to stop the current content.
virtual std::string pause(bool direct_access=false)=0
Request the audio player to pause the current content.
virtual void seek(int msec)=0
Request the audio player to move the current content section.
virtual std::string prev()=0
Request the audio player to play the previous content.
virtual std::string resume(bool direct_access=false)=0
Request the audio player to resume the current content.
virtual std::string requestRepeatCommand(RepeatType current_repeat)=0
Send to request repeat command event with current repeat value.
virtual std::string requestFavoriteCommand(bool current_favorite)=0
Send to request favorite command event with current favorite value.
virtual std::string next()=0
Request the audio player to play the next content.
audioplayer listener interface
Definition: audio_player_interface.hh:77
virtual void repeatChanged(RepeatType repeat, const std::string &dialog_id)=0
The audio player reports to the user the current content's repeat setting changed.
virtual void durationChanged(int duration)=0
The audio player reports the total duration of the content being played to the user.
virtual void favoriteChanged(bool favorite, const std::string &dialog_id)=0
The audio player reports to the user the current content's favorite setting changed.
virtual void mediaStateChanged(AudioPlayerState state, const std::string &dialog_id)=0
Report this to the user when the state of the audio player changes.
virtual void shuffleChanged(bool shuffle, const std::string &dialog_id)=0
The audio player reports to the user the current content's shuffle setting changed.
virtual void mediaEventReport(AudioPlayerEvent event, const std::string &dialog_id)=0
The audio player reports player's event being played to the user.
virtual void requestContentCache(const std::string &key, const std::string &playurl)=0
The audio player request to the user to cache the content if possible.
virtual void positionChanged(int position)=0
The audio player reports to the user the current playing time of the content being played.
virtual bool requestToGetCachedContent(const std::string &key, std::string &filepath)=0
The audio player request to the user to get the cached content.
display handler interface
Definition: display_interface.hh:107
display listener interface
Definition: display_interface.hh:66
capability interface
Definition: capability_interface.hh:82
capability listener interface
Definition: capability_interface.hh:60
RepeatType
RepeatType.
Definition: audio_player_interface.hh:67
AudioPlayerEvent
AudioPlayerEvent.
Definition: audio_player_interface.hh:54
AudioPlayerState
AudioPlayerState.
Definition: audio_player_interface.hh:43