Module: AudioPlayerView

Methods


<static> LoadNextSong()

Source:
Returns:
Type
void

<static> OnScreenHidden()

Source:
Returns:
Type
void

<static> audioPositionChanged()

Source:
Returns:
Type
void

<static> audioStateChanged()

Source:
Returns:
Type
void

<static> bufferPositionChanged()

Source:
Returns:
Type
void

<static> endScreenSaver()

Source:
Returns:
Type
void

<static> findCurrentSongIndex(songList)

Parameters:
Name Type Description
songList dynamic
Source:
Returns:
Type
integer

<static> init()

Source:
Returns:
Type
void

<static> loadButtons()

If we have more and 1 song to play, fade in the next and previous controls

Source:
Returns:
Type
void

<static> loopClicked()

Source:
Returns:
Type
boolean

<static> nextClicked()

Source:
Returns:
Type
boolean

<static> onAudioStreamLoaded()

Source:
Returns:
Type
void

<static> onBackdropImageLoaded()

Source:
Returns:
Type
void

<static> onButtonSelectedChange()

Event handler when user selected a different playback button

Source:
Returns:
Type
void

<static> onKeyEvent(key, press)

Process key press events

Parameters:
Name Type Description
key string
press boolean
Source:
Returns:
Type
boolean

<static> onMetaDataLoaded()

Source:
Returns:
Type
void

<static> onScreensaverTimeoutLoaded()

Source:
Returns:
Type
void

<static> pageContentChanged()

Update values on screen when page content changes

Source:
Returns:
Type
void

<static> playAction()

Source:
Returns:
Type
boolean

<static> previousClicked()

Source:
Returns:
Type
boolean

<static> resetLoopModeToDefault()

Source:
Returns:
Type
void

<static> screenSaverActive()

Source:
Returns:
Type
boolean

<static> setBackdropImage(data)

Add backdrop image to screen

Parameters:
Name Type Description
data dynamic
Source:
Returns:
Type
void

<static> setLoopButtonImage()

Source:
Returns:
Type
void

<static> setOnScreenTextValues(json)

Populate on screen text variables

Parameters:
Name Type Description
json dynamic
Source:
Returns:
Type
void

<static> setPosterImage(posterURL)

Set poster image on screen

Parameters:
Name Type Description
posterURL dynamic
Source:
Returns:
Type
void

<static> setScreenTitle(json)

Set screen's title text

Parameters:
Name Type Description
json dynamic
Source:
Returns:
Type
void

<static> setShuffleIconState()

Source:
Returns:
Type
void

<static> setTrackNumberDisplay()

Source:
Returns:
Type
void

<static> setupAnimationTasks()

Source:
Returns:
Type
void

<static> setupAudioNode()

Creates audio node used to play song(s)

Source:
Returns:
Type
void

<static> setupButtons()

Setup playback buttons, default to Play button selected

Source:
Returns:
Type
void

<static> setupDataTasks()

Creates tasks to gather data needed to render Scene and play song

Source:
Returns:
Type
void

<static> setupInfoNodes()

Source:
Returns:
Type
void

<static> setupScreenSaver()

Source:
Returns:
Type
void

<static> shuffleClicked()

Source:
Returns:
Type
boolean

<static> startScreenSaver()

Source:
Returns:
Type
void

<static> toggleShuffleEnabled()

Source:
Returns:
Type
void