NUGU SDK Linux  1.7.6
AudioPlayerInterface

AudioPlayer capability interface. More...

+ Collaboration diagram for AudioPlayerInterface:

Classes

class  NuguCapability::IAudioPlayerDisplayListener
 audioplayer's display listener interface More...
 
class  NuguCapability::IAudioPlayerHandler
 audioplayer handler interface More...
 
class  NuguCapability::IAudioPlayerListener
 audioplayer listener interface More...
 

Enumerations

enum class  NuguCapability::AudioPlayerEvent {
  UNDERRUN , LOAD_FAILED , LOAD_DONE , INVALID_URL ,
  PAUSE_BY_DIRECTIVE , PAUSE_BY_FOCUS , PAUSE_BY_APPLICATION
}
 AudioPlayerEvent. More...
 
enum class  NuguCapability::AudioPlayerState {
  IDLE , PLAYING , STOPPED , PAUSED ,
  FINISHED
}
 AudioPlayerState. More...
 
enum class  NuguCapability::RepeatType { NONE , ONE , ALL }
 RepeatType. More...
 

Detailed Description

AudioPlayer capability interface.

Processes the media service request to control the content and sends the current operation status of the content to the server.

Enumeration Type Documentation

◆ AudioPlayerState

AudioPlayerState.

Enumerator
IDLE 

Enters IDLE state when first powered on

PLAYING 

Status playing in AudioPlayer

STOPPED 

Status stopped in AudioPlayer

PAUSED 

Status paused in AudioPlayer

FINISHED 

Status playback finished in AudioPlayer

◆ AudioPlayerEvent

AudioPlayerEvent.

Enumerator
UNDERRUN 

This event is occurred when the content is reloaded because of bad quality network

LOAD_FAILED 

This event is occurred when the content is not loaded successfully

LOAD_DONE 

This event is occurred when the content is loaded successfully

INVALID_URL 

This event is occurred when the content is not valid url

PAUSE_BY_DIRECTIVE 

This event is occurred when the agent receives a pause directive, it blocks content playback until another directive is received.

PAUSE_BY_FOCUS 

This event is occurred when the agent loses focus by another higher focus

PAUSE_BY_APPLICATION 

This event is occurred when the application pause the mediaplayer directly access

◆ RepeatType

RepeatType.

Enumerator
NONE 

Never repeat

ONE 

Just one time repeat

ALL 

Repeat continuously