Goodbye getCurrentTrackBlabla()… Hello getCurrentTrack()!
Pre-release
Pre-release
There is now a new function: getCurrentTrack()
, that replaces all the previous functions that were starting with getCurrentTrack. It returns a JSON Object with a lot of informations on the current track. You can look at the example to see how simple it is.
Here's what returns getCurrentTrack():
{ name: 'Say What You Say',
artist: 'Eminem',
album: 'The Eminem Show (Explicit Version)',
duration: 310,
elapsedTime: 146,
remainingTime: 164,
genre: 'Rap/Hip Hop',
release_year: 2002,
id: 2662,
playerState: 'playing' }