Methods
(static) LoadNextSong() → {void}
- Type:
- void
(static) applyTheme() → {void}
- Type:
- void
(static) audioPositionChanged() → {void}
- Type:
- void
(static) audioStateChanged() → {void}
- Type:
- void
(static) bufferPositionChanged() → {void}
- Type:
- void
(static) destroy() → {void}
destroy: Full teardown releasing all resources before component removal Called automatically by SceneManager.popScene() / clearScenes()
- 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 than 1 song to play, set initial button states
- 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) onButtonSelected() → {void}
Event handler when user selects a button via OK key
- 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) setLoopButtonImage() → {void}
- Type:
- void
(static) setOnScreenTextValues(item) → {void}
Populate on screen text variables
| Name | Type | Description |
|---|---|---|
item | object |
- Type:
- void
(static) setPosterImage(posterURL) → {void}
Set poster image on screen
| Name | Type | Description |
|---|---|---|
posterURL | dynamic |
- Type:
- void
(static) setScreenTitle(item) → {void}
Set screen's title text to "Artist / Song" when both are available, just song name if no album artist, or empty string to reset the title.
| Name | Type | Description |
|---|---|---|
item | object |
- Type:
- void
(static) setShuffleIconState() → {void}
- Type:
- void
(static) setTrackNumberDisplay() → {void}
- Type:
- void
(static) setupAnimationTasks() → {void}
- 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