Methods
(static) LoadNextSong() → {void}
(static) OnScreenHidden() → {void}
(static) audioPositionChanged() → {void}
(static) audioStateChanged() → {void}
(static) bufferPositionChanged() → {void}
(static) endScreenSaver() → {void}
(static) findCurrentSongIndex(songList) → {integer}
Parameters:
Name | Type | Description |
---|---|---|
songList |
dynamic |
(static) init() → {void}
(static) loadButtons() → {void}
If we have more and 1 song to play, fade in the next and previous controls
(static) loopClicked() → {boolean}
(static) nextClicked() → {boolean}
(static) onAudioStreamLoaded() → {void}
(static) onBackdropImageLoaded() → {void}
(static) onButtonSelectedChange() → {void}
Event handler when user selected a different playback button
(static) onKeyEvent(key, press) → {boolean}
Process key press events
Parameters:
Name | Type | Description |
---|---|---|
key |
string | |
press |
boolean |
(static) onMetaDataLoaded() → {void}
(static) onScreensaverTimeoutLoaded() → {void}
(static) pageContentChanged() → {void}
Update values on screen when page content changes
(static) playAction() → {boolean}
(static) previousClicked() → {boolean}
(static) resetLoopModeToDefault() → {void}
(static) screenSaverActive() → {boolean}
(static) setBackdropImage(data) → {void}
Add backdrop image to screen
Parameters:
Name | Type | Description |
---|---|---|
data |
dynamic |
(static) setLoopButtonImage() → {void}
(static) setOnScreenTextValues(json) → {void}
Populate on screen text variables
Parameters:
Name | Type | Description |
---|---|---|
json |
dynamic |
(static) setPosterImage(posterURL) → {void}
Set poster image on screen
Parameters:
Name | Type | Description |
---|---|---|
posterURL |
dynamic |
(static) setScreenTitle(json) → {void}
Set screen's title text
Parameters:
Name | Type | Description |
---|---|---|
json |
dynamic |
(static) setShuffleIconState() → {void}
(static) setTrackNumberDisplay() → {void}
(static) setupAnimationTasks() → {void}
(static) setupAudioNode() → {void}
Creates audio node used to play song(s)
(static) setupButtons() → {void}
Setup playback buttons, default to Play button selected
(static) setupDataTasks() → {void}
Creates tasks to gather data needed to render Scene and play song