function (options) {
  var self = this
  if (!(self instanceof Device)) return new Device(options)
  EventEmitter.call(self)

  self.config = options
  self.host = self.config.addresses[0]
  self._playing = false
}
function (options) {
  var self = this
  if (!(self instanceof Device)) return new Device(options)
  EventEmitter.call(self)

  self.config = options
  self.host = self.config.addresses[0]
  self._playing = false
}
function ( options ) { var self = this if ( ! ( self instanceof Device ) ) return new Device ( options ) EventEmitter . call ( self ) self . config = options self . host = self . config . addresses [ 0 ] self . _playing = false }
Chromecast
Supported Media: https://developers.google.com/cast/docs/media
Receiver Apps: https://developers.google.com/cast/docs/receiver_apps
 
Device
@param {Array}  options.address      IP address
@param {String} options.name         name
Chromecast Supported Media : https : // developers . google . com / cast / docs / media Receiver Apps : https : // developers . google . com / cast / docs / receiver_apps Device