Class MyClass#init
Transistor
Defined in: transistor.js.
Constructor Attributes | Constructor Name and Description |
---|---|
MyClass#init(cfg)
Transistor is a library for building Last.fm Radio clients
|
Class Detail
MyClass#init(cfg)
Transistor is a library for building Last.fm Radio clients
- 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?