Class Transistor#init
A Transistor is a library for building Last.fm Radio clients
Defined in: transistor.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Transistor#init(cfg)
|
Class Detail
Transistor#init(cfg)
- Parameters:
- cfg
- Configuration object
- cfg.player Optional
- A player
- cfg.swfUrl Optional
- Location of the SoundManager swfs. passed to the players constructor
- cfg.api Optional
- Api client to use
- {String} cfg.key Optional
- Your api key
- {String} cfg.secret Optional
- Your api secret
- {String} cfg.session Optional
- Your api session
- {String} cfg.scrobble Optional, Default: true
- Should tracks be scrobbled and now playing notifications be sent?