AudioPlayerView

Methods

(static) LoadNextSong() → {void}

Source:

(static) OnScreenHidden() → {void}

Source:

(static) audioPositionChanged() → {void}

Source:

(static) audioStateChanged() → {void}

Source:

(static) bufferPositionChanged() → {void}

Source:

(static) endScreenSaver() → {void}

Source:

(static) findCurrentSongIndex(songList) → {integer}

Parameters:
Name Type Description
songList dynamic
Source:

(static) init() → {void}

Source:

(static) loadButtons() → {void}

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

Source:

(static) loopClicked() → {boolean}

Source:

(static) nextClicked() → {boolean}

Source:

(static) onAudioStreamLoaded() → {void}

Source:

(static) onBackdropImageLoaded() → {void}

Source:

(static) onButtonSelectedChange() → {void}

Event handler when user selected a different playback button

Source:

(static) onKeyEvent(key, press) → {boolean}

Process key press events

Parameters:
Name Type Description
key string
press boolean
Source:

(static) onMetaDataLoaded() → {void}

Source:

(static) onScreensaverTimeoutLoaded() → {void}

Source:

(static) pageContentChanged() → {void}

Update values on screen when page content changes

Source:

(static) playAction() → {boolean}

Source:

(static) previousClicked() → {boolean}

Source:

(static) resetLoopModeToDefault() → {void}

Source:

(static) screenSaverActive() → {boolean}

Source:

(static) setBackdropImage(data) → {void}

Add backdrop image to screen

Parameters:
Name Type Description
data dynamic
Source:

(static) setLoopButtonImage() → {void}

Source:

(static) setOnScreenTextValues(json) → {void}

Populate on screen text variables

Parameters:
Name Type Description
json dynamic
Source:

(static) setPosterImage(posterURL) → {void}

Set poster image on screen

Parameters:
Name Type Description
posterURL dynamic
Source:

(static) setScreenTitle(json) → {void}

Set screen's title text

Parameters:
Name Type Description
json dynamic
Source:

(static) setShuffleIconState() → {void}

Source:

(static) setTrackNumberDisplay() → {void}

Source:

(static) setupAnimationTasks() → {void}

Source:

(static) setupAudioNode() → {void}

Creates audio node used to play song(s)

Source:

(static) setupButtons() → {void}

Setup playback buttons, default to Play button selected

Source:

(static) setupDataTasks() → {void}

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

Source:

(static) setupInfoNodes() → {void}

Source:

(static) setupScreenSaver() → {void}

Source:

(static) shuffleClicked() → {boolean}

Source:

(static) startScreenSaver() → {void}

Source:

(static) toggleShuffleEnabled() → {void}

Source: