Search code examples
javascripthtmlitunes

Is it possible to use javascript to get the currently playing Itunes track


I am looking to see if it's, first, possible to even use javascript to get the currently playing Itunes song, and if so, how?

A use case along the lines of:

  1. User clicks a link
  2. An alert pops up displaying song name, artist and album.

Thanks


Solution

  • Directly, no. If the data from iTunes is sent to a service like last.fm, it can be fetched there on a regular interval to see what they are listening to. Something similar to https://github.com/niklasvh/jquery.plugin.listening