Module: Playback_js

Methods

(inner) clickTitle() → {void}

Handler for the PlaybackTitle element click event
Source:
Returns:
Type
void

(inner) handlePlayback() → {void}

Handles Playback
Source:
Returns:
Type
void

(inner) initViewPlayback() → {void}

Initializes the playback html elements
Source:
Returns:
Type
void

(inner) parseCurrentSong(obj) → {void}

Parses the MYMPD_API_PLAYER_CURRENT_SONG jsonrpc response
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) setPlaybackCardTags(songObj) → {void}

Sets the values of the tags displayed in the playback view
Parameters:
Name Type Description
songObj object song object (result object of MYMPD_API_PLAYER_CURRENT_SONG jsonrpc response)
Source:
Returns:
Type
void

(inner) setVoteSongBtns(vote, uri) → {void}

Sets the state of the song vote button group
Parameters:
Name Type Description
vote number the vote 0 = hate, 1 = neutral, 2 = love
uri string song uri
Source:
Returns:
Type
void

(inner) showAddToPlaylistCurrentSong() → {void}

Adds the current playing song to a playlist
Source:
Returns:
Type
void