Announcements

Help Wizard

Step 1

NEXT STEP

/v1/me/player timestamp field unexpected value

/v1/me/player timestamp field unexpected value

My Question or Issue

When using the /v1/me/player endpoint, there is a field called timestamp. According to the documentation, it should return the "Unix Millisecond Timestamp when data was fetched". It'd appear to me that it should be a variable that'd be a couple of milliseconds behind the current time in milliseconds.

 

Instead, it returns the epoch time when you started playing the current song. I was hoping to use this value to precisely calculate the current playback time. E.g.:

 

 

 

json.get("progress_ms").getAsInt() + (System.currentTimeMillis() - json.get("timestamp").getAsLong()) 

 

 

 

 

 

 

Reply
0 Replies

Suggested posts