APIs

Show:

This class...

Constructor

StationsCollection

() Object

Returns:

Object:

instantiated StationsCollection

Methods

_getStationIconColor

(
  • i_connection
)

Return a color string corresponding to the color code received from remote mediaSERVER

Parameters:

_onStationPollTimeChanged

(
  • e
)

Set how often to poll remote mediaSERVER for station updates, set by global settings component

Parameters:

  • e Event

_populateCollection

(
  • i_xmlStations
)

Create the stations collection with data received from remote mediaSERVER, create corresponding Backbone.models

Parameters:

getRemoteStations

()

Retrieve remote station list and status from remote mediaSERVER

initialize

()

Constructor

pauseGetRemoteStations

()

Pause retrieval of remote mediaSERVER station list and stats

resumeGetRemoteStations

()

Resume retrieval of remote mediaSERVER station list and stats

setPlayerData

(
  • i_playerData
)
Number

Name is empty, so we pepper.sync to get updated station name

Parameters:

Returns:

Number:

Unique clientId.

Events

STATION_NAME_CHANGED

final static

Custom event fired when station name changed

Event Payload:

  • caller This
  • context Self

    caller

  • rss Event

    link