v1.0 item attributes

For v1.0, the items array has the attributes described below:

AttributeTypeDescription
itemIdstringThe queue ID of the track that played.
trackUrlstringThe URL of the track that played.
durationPlayedMillisnumberTotal duration of playback, in milliseconds. This is cumulative including any scrub or seek operations within the track during a single playback, so this value can be greater than the duration of the track.
timeSincePlaybackMillisnumberThe time, in milliseconds, since this item began playback. This value gives the music service provider a reference for when playback started. This value reports the delta between when playback began and the /timePlayed message was posted. This can be different from durationPlayedMillis due to pausing and resuming.

Example

One or more arrays of items:

{
  “items”: [
    {
      "kind": "musicqueue#itemPlayedData",
      "itemId": "Track12345",
      "trackUrl": "http://example.com/track12345.mp3",
      "durationPlayedMillis": 240000,
      "timeSincePlaybackMillis": 360000
    }
    ,
    {
      "kind": "musicqueue#itemPlayedData",
      "itemId": "Track12346",
      "trackUrl": "http://example.com/track12346.mp3",
      "durationPlayedMillis": 180000,
      "timeSincePlaybackMillis": 600000
    }
  ]
}