I can’t figure out how to pull the song title from the Streampad API. This is straight from the Streampad API website.
SPAPI.song():ObjectReturns the current song that is
playing. Object will have these
properties: songTitle, artist, album,
imageUrl (link to album cover art),
sourceUrl (link to page containing
song), queue (number this song is in
the play queue).
using jQuery so far I have this..
$(".artist").click(function(){
alert(SPAPI.song(songTitle));
});
.songTitleis a property on the returned object, so it’s accessed like this:For a bit of error checking, make sure there is a song, like this: