Methods
(static) LoadNextSong() → {void}
- Type:
- void
(static) OnScreenHidden() → {void}
- Type:
- void
(static) audioPositionChanged() → {void}
- Type:
- void
(static) audioStateChanged() → {void}
- Type:
- void
(static) bufferPositionChanged() → {void}
- Type:
- void
(static) endScreenSaver() → {void}
- Type:
- void
(static) exitScrubMode() → {void}
exitScrubMode: Moves player out of scrub mode state, resets back to standard play mode
- Type:
- void
(static) findCurrentSongIndex(songList) → {integer}
Name | Type | Description |
---|---|---|
songList | dynamic |
- Type:
- integer
(static) init() → {void}
- Type:
- void
(static) loadButtons() → {void}
If we have more and 1 song to play, fade in the next and previous controls
- Type:
- void
(static) loopClicked() → {boolean}
- Type:
- boolean
(static) moveSeekbarThumb(playPositionBarWidth) → {void}
moveSeekbarThumb: Positions the thumb on the seekbar
Name | Type | Description |
---|---|---|
playPositionBarWidth | float | width of the play position bar |
- Type:
- void
(static) nextClicked() → {boolean}
- Type:
- boolean
(static) onAudioStreamLoaded() → {void}
- Type:
- void
(static) onBackdropImageLoaded() → {void}
- Type:
- void
(static) onButtonSelectedChange() → {void}
Event handler when user selected a different playback button
- Type:
- void
(static) onKeyEvent(key, press) → {boolean}
Process key press events
Name | Type | Description |
---|---|---|
key | string | |
press | boolean |
- Type:
- boolean
(static) onMetaDataLoaded() → {void}
- Type:
- void
(static) onScreensaverTimeoutLoaded() → {void}
- Type:
- void
(static) pageContentChanged() → {void}
Update values on screen when page content changes
- Type:
- void
(static) playAction() → {boolean}
- Type:
- boolean
(static) previousClicked() → {boolean}
- Type:
- boolean
(static) processScrubAction(seekStep) → {void}
processScrubAction: Handles +/- seeking for the audio trickplay bar
Name | Type | Description |
---|---|---|
seekStep | integer | seconds to move the trickplay position (negative values allowed) |
- Type:
- void
(static) resetLoopModeToDefault() → {void}
- Type:
- void
(static) resetSeekbarThumb() → {void}
resetSeekbarThumb: Resets the thumb to the playing position
- Type:
- void
(static) screenSaverActive() → {boolean}
- Type:
- boolean
(static) setBackdropImage(data) → {void}
Add backdrop image to screen
Name | Type | Description |
---|---|---|
data | dynamic |
- Type:
- void
(static) setLoopButtonImage() → {void}
- Type:
- void
(static) setOnScreenTextValues(json) → {void}
Populate on screen text variables
Name | Type | Description |
---|---|---|
json | dynamic |
- Type:
- void
(static) setPosterImage(posterURL) → {void}
Set poster image on screen
Name | Type | Description |
---|---|---|
posterURL | dynamic |
- Type:
- void
(static) setScreenTitle(json) → {void}
Set screen's title text
Name | Type | Description |
---|---|---|
json | dynamic |
- Type:
- void
(static) setSelectedButtonState(oldState, newState) → {void}
setSelectedButtonState: Changes the icon state url for the currently selected button
Name | Type | Description |
---|---|---|
oldState | string | current state to replace in icon url |
newState | string | state to replace {oldState} with in icon url |
- Type:
- void
(static) setShuffleIconState() → {void}
- Type:
- void
(static) setTrackNumberDisplay() → {void}
- Type:
- void
(static) setupAnimationTasks() → {void}
- Type:
- void
(static) setupAudioNode() → {void}
Creates audio node used to play song(s)
- Type:
- void
(static) setupButtons() → {void}
Setup playback buttons, default to Play button selected
- Type:
- void
(static) setupDataTasks() → {void}
Creates tasks to gather data needed to render Scene and play song
- Type:
- void
(static) setupInfoNodes() → {void}
- Type:
- void
(static) setupScreenSaver() → {void}
- Type:
- void
(static) shuffleClicked() → {boolean}
- Type:
- boolean
(static) startScreenSaver() → {void}
- Type:
- void
(static) toggleShuffleEnabled() → {void}
- Type:
- void