0.3.2 • Published 8 years ago

spotifyCurrentlyPlaying.js v0.3.2

Weekly downloads
19
License
MIT
Repository
github
Last release
8 years ago

spotifyCurrentlyPlaying.js

Display your currently playing Spotify song(s) using Last.fm scrobbling.

Documentation

http://kylebrumm.com/spotifyCurrentlyPlaying.js/

To-Do

  • Add Methods
    • refresh() - Refresh the player
    • destroy() - Remove the player
  • Add Events
      • init - Fires after SCP initializes for the first time
      • reInit - Fires every time SCP re-initializes
  • Turn into a Bower package
  • Turn into an npm package
  • Website
    • Add a table of all the "options"
    • Add a "Browser Support" section

Settings

OptionTypeDefaultDescription
selectorstring|element'.scp-container'Class or selector for the container
usernamestring''LastFM username
api_keystring''LastFM API key
widthint300Width of the player
heightint400Height of the player
themestring'black'Theme of the player (black, white)
viewstring'list'View of the player (list, coverart)
countint1Number of tracks to display
backup_idsarray...Backup IDs of tracks to display if no tracks are found

Browser Support

  • Chrome (todo)
  • Firefox (todo)
  • Safari (todo)
  • Opera (todo)
  • IE (todo)

License

Copyright © Kyle Brumm. spotifyCurrentlyPlaying.js is free to use on whatever and may be redistributed under the terms specified in the license.